[patch] wu-ftpd internal ls

Marian S. Asokarajan mail at sashi.de
Sun Oct 8 10:27:51 PDT 2006


Hello,

here is patch for wu-ftpd's bad behaivior on it's internal ls function.


--- src/ftpd.c  Thu Nov 29 17:56:11 2001
+++ src/ftpd.c.sas      Wed Oct  4 20:55:46 2006
@@ -3508,7 +3508,7 @@
  {
      char *a;
      a = (char *) malloc(len + 1);
-    memset(a, ' ', len-1);
+    memset(a, ' ', len);
      a[len] = 0;
      if (strlen(s) <= len)
         memcpy(a, s, strlen(s));


Although the daemon is outdated, I thougth it might be useful to someone.


Best Regards,
Marian S. Asokarajan


More information about the freebsd-ports mailing list