commit 980965767ef3ace983746ee25e92665b87d16755 Author: Laszlo Papp <lp...@kde.org> Date: Tue Aug 5 11:42:24 2014 +0100
Allow 256 bytes long usernames as per Unix standards (usually) diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c index 2060d78..9e4424f 100644 --- a/libpwdgrp/pwd_grp.c +++ b/libpwdgrp/pwd_grp.c @@ -23,8 +23,8 @@ /**********************************************************************/ /* Sizes for statically allocated buffers. */ -#define PWD_BUFFER_SIZE 256 -#define GRP_BUFFER_SIZE 256 +#define PWD_BUFFER_SIZE 2*LOGIN_NAME_MAX+256 +#define GRP_BUFFER_SIZE 2*LOGIN_NAME_MAX+256 /**********************************************************************/ /* Prototypes for internal functions. */
_______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox