diff options
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c index 0487ecf4707..71973cec914 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -1370,7 +1370,7 @@ name, or nil if there is no such user. */) | |||
| 1370 | if (!pw) | 1370 | if (!pw) |
| 1371 | return Qnil; | 1371 | return Qnil; |
| 1372 | 1372 | ||
| 1373 | p = (unsigned char *) USER_FULL_NAME; | 1373 | p = (unsigned char *) pw->pw_gecos; |
| 1374 | /* Chop off everything after the first comma. */ | 1374 | /* Chop off everything after the first comma. */ |
| 1375 | q = (unsigned char *) index (p, ','); | 1375 | q = (unsigned char *) index (p, ','); |
| 1376 | full = make_string (p, q ? q - p : strlen (p)); | 1376 | full = make_string (p, q ? q - p : strlen (p)); |