Raymond Toy pushed to branch issue-408-get-user-name-and-homedir at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • src/lisp/Darwin-os.c
    ... ... @@ -593,7 +593,7 @@ os_temporary_directory(void)
    593 593
     
    
    594 594
         len = confstr(_CS_DARWIN_USER_TEMP_DIR, path, PATH_MAX);
    
    595 595
         if (len == 0 || len > PATH_MAX || (len == PATH_MAX && path[len - 1] != '/')) {
    
    596
    -	strlcpy(path, "/tmp/");
    
    596
    +	strcpy(path, "/tmp/");
    
    597 597
         } else if (path[len - 1] != '/') {
    
    598 598
     	strcat(path, "/");
    
    599 599
         }