[Git][cmucl/cmucl][issue-408-get-user-name-and-homedir] Fix typo: strcpy instead of strlcpy
Raymond Toy pushed to branch issue-408-get-user-name-and-homedir at cmucl / cmucl Commits: 2d139cbe by Raymond Toy at 2025-11-13T12:50:51-08:00 Fix typo: strcpy instead of strlcpy We're copying "/tmp/" into path which is large enough (PATH_MAX) to hold the desired string. - - - - - 1 changed file: - src/lisp/Darwin-os.c Changes: ===================================== src/lisp/Darwin-os.c ===================================== @@ -593,7 +593,7 @@ os_temporary_directory(void) len = confstr(_CS_DARWIN_USER_TEMP_DIR, path, PATH_MAX); if (len == 0 || len > PATH_MAX || (len == PATH_MAX && path[len - 1] != '/')) { - strlcpy(path, "/tmp/"); + strcpy(path, "/tmp/"); } else if (path[len - 1] != '/') { strcat(path, "/"); } View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/2d139cbea433ed33d8a7d5c0... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/2d139cbea433ed33d8a7d5c0... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)