Raymond Toy pushed to branch issue-130-file-author-in-c at cmucl / cmucl
Commits:
-
288e8373
by Raymond Toy at 2022-09-01T16:30:52-07:00
1 changed file:
Changes:
... | ... | @@ -786,7 +786,7 @@ os_file_author(const char *path) |
786 | 786 | fprintf(stderr, "Allocate %d bytes for author\n",
|
787 | 787 | strlen(result->pw_name + 1));
|
788 | 788 |
|
789 | - author = malloc(strlen(result->pw_name + 1));
|
|
789 | + author = malloc(strlen(result->pw_name) + 1);
|
|
790 | 790 | if (author) {
|
791 | 791 | fprintf(stderr, "author = %p\n", author);
|
792 | 792 | strcpy(author, result->pw_name);
|