slackbuilds/system/d52/20-fix-format-security-erro...

13 lines
375 B
Diff

diff -Nur -x '*.orig' -x '*~' d52-3.4.1/d52pass2.c d52-3.4.1.new/d52pass2.c
--- d52-3.4.1/d52pass2.c 2007-09-02 15:31:16.000000000 +0000
+++ d52-3.4.1.new/d52pass2.c 2011-11-08 02:22:21.000000000 +0000
@@ -932,7 +932,7 @@
}
else if (dir < 0x80)
{
- kcnt += fprintf(fp, rbname[dir].dent);
+ kcnt += fprintf(fp, "%s",rbname[dir].dent);
dirregs[dir] |= 1;
}
else