source: npl/system/netkit-ftp/patches/26-netkit-ftp-0.17-acct_ovl.patch @ c5c522c

gcc484ntopperl-5.22
Last change on this file since c5c522c was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 467 bytes
RevLine 
[c5c522c]1diff -up netkit-ftp-0.17/ftp/cmds.c.acct_ovl netkit-ftp-0.17/ftp/cmds.c
2--- netkit-ftp-0.17/ftp/cmds.c.acct_ovl 2011-09-09 15:36:36.087956561 +0200
3+++ netkit-ftp-0.17/ftp/cmds.c  2011-09-09 15:41:16.457495370 +0200
4@@ -1837,8 +1837,7 @@ account(int argc, char *argv[])
5                while (argc > 1) {
6                        --argc;
7                        ++argv;
8-                       strncat(buf, *argv, sizeof(buf)-strlen(buf));
9-                       buf[sizeof(buf)-1] = 0;
10+                       strncat(buf, *argv, sizeof(buf)-strlen(buf)-1);
11                }
12                ap = buf;
13        }
Note: See TracBrowser for help on using the repository browser.