File: str_format_security.diff

package info (click to toggle)
itools 1.0-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 460 kB
  • ctags: 128
  • sloc: ansic: 1,465; perl: 388; makefile: 93; sh: 18
file content (13 lines) | stat: -rw-r--r-- 447 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
Description: Added format argument for an sprintf call that prints a variable string
Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy@users.sourceforge.net>
--- a/ipraytime.c
+++ b/ipraytime.c
@@ -908,7 +908,7 @@
    /* Fill the city name */
    if (user_input.city && !user_cmdline)
    {
-      sprintf(city_name, user_input.city);
+      sprintf(city_name, "%s", user_input.city);
       free(user_input.city);
    }
    else