summaryrefslogtreecommitdiff
path: root/source/n/netkit-ftp/patches/18-netkit-ftp-0.17-size.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/netkit-ftp/patches/18-netkit-ftp-0.17-size.patch')
-rw-r--r--source/n/netkit-ftp/patches/18-netkit-ftp-0.17-size.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/n/netkit-ftp/patches/18-netkit-ftp-0.17-size.patch b/source/n/netkit-ftp/patches/18-netkit-ftp-0.17-size.patch
new file mode 100644
index 00000000..22e08069
--- /dev/null
+++ b/source/n/netkit-ftp/patches/18-netkit-ftp-0.17-size.patch
@@ -0,0 +1,12 @@
+diff -up netkit-ftp-0.17/ftp/cmds.c.size netkit-ftp-0.17/ftp/cmds.c
+--- netkit-ftp-0.17/ftp/cmds.c.size 2007-10-10 14:17:18.000000000 +0200
++++ netkit-ftp-0.17/ftp/cmds.c 2007-10-10 14:17:18.000000000 +0200
+@@ -1650,6 +1650,8 @@ quote1(const char *initial, int argc, ch
+ register int i, len;
+ char buf[BUFSIZ]; /* must be >= sizeof(line) */
+
++ if (strncmp(argv[1],"size",4) == 0)
++ changetype(TYPE_I, 1);
+ (void) strcpy(buf, initial);
+ if (argc > 1) {
+ len = strlen(buf);