1 --- util-linux-2.10m/login-utils/chfn.c Sun May 14 19:27:59 2000
2 +++ util-linux-2.10m/login-utils/chfn.c Thu Jun 1 06:24:25 2000
4 #define memzero(ptr, size) memset((char *) ptr, 0, size)
6 /* we do not accept gecos field sizes longer than MAX_FIELD_SIZE */
7 -#define MAX_FIELD_SIZE 256
8 +#define MAX_FIELD_SIZE 64
10 int main (int argc, char **argv) {
16 + if (strlen(gecos) > MAX_FIELD_SIZE) {
18 + printf("%s: ", msg);
19 + printf("field is too long.\n");
22 for (i = 0; i < strlen (gecos); i++) {
24 if (c == ',' || c == ':' || c == '=' || c == '"' || c == '\n') {