freebsd-ports/ftp/tnftpd/files/patch-src-ftpd.c
Volker Stolz 142882e1de Update to 20040810, which contains latest security fixes
PR:		ports/70624
Submitted by:	Rudolf Cejka (maintainer)
2004-08-19 14:25:11 +00:00

17 lines
512 B
C

--- src/ftpd.c-orig Wed Aug 18 17:22:30 2004
+++ src/ftpd.c Wed Aug 18 17:27:28 2004
@@ -450,12 +450,12 @@
exit(1);
} else if (l <= 0) {
syslog(LOG_WARNING, "using conservative LOGIN_NAME_MAX value");
- curname_len = _POSIX_LOGIN_NAME_MAX;
+ curname_len = LOGIN_NAME_MAX;
} else
curname_len = (size_t)l;
#else
/* using conservative LOGIN_NAME_MAX value */
- curname_len = _POSIX_LOGIN_NAME_MAX;
+ curname_len = LOGIN_NAME_MAX;
#endif
curname = malloc(curname_len);
if (curname == NULL) {