![](https://secure.gravatar.com/avatar/5634a99cd64dd70d4a6692c3031a1284.jpg?s=120&d=mm&r=g)
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 Fix typo in allocation for author The closing paren is in the wrong place so we didn't allocate enough memory to hold the author field. - - - - - 1 changed file: - src/lisp/os-common.c Changes: ===================================== src/lisp/os-common.c ===================================== @@ -786,7 +786,7 @@ os_file_author(const char *path) fprintf(stderr, "Allocate %d bytes for author\n", strlen(result->pw_name + 1)); - author = malloc(strlen(result->pw_name + 1)); + author = malloc(strlen(result->pw_name) + 1); if (author) { fprintf(stderr, "author = %p\n", author); strcpy(author, result->pw_name); View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/288e837309e3792ba4aaf767... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/288e837309e3792ba4aaf767... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)