Package: xsoldier / 1:1.8-6

Metadata

Package Version Patches format
xsoldier 1:1.8-6 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
bad sprintf.diff | (download)

manage.c | 2 1 1 - 0 !
1 file changed, 1 insertion( ), 1 deletion(-)

 fixes insecure sprintf()
 This patch replaces sprintf(to, from) with strcpy(to, from).  Using
 sprintf() in this way is dangerous because the string "from" may
 include conversion specifications such as "%s".
array size calculation.diff | (download)

main.c | 10 5 5 - 0 !
manage.c | 8 4 4 - 0 !
score.c | 16 8 8 - 0 !
3 files changed, 17 insertions( ), 17 deletions(-)

 fixes possibly wrong array size calculation with sizeof()
 This patch replaces sizeof(array) with sizeof(array)/sizeof(array[0])
 when the program calculates the size of the array.  Although all arrays
 handled in this way are arrays of char, there may be an architecture
 where sizeof(char) is not 1.