Raymond Toy pushed to branch issue-394-getcwd-retry-buffer-size at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • src/lisp/os-common.c
    ... ... @@ -948,7 +948,7 @@ os_getcwd(void)
    948 948
         char *result = NULL;
    
    949 949
     
    
    950 950
         result = getcwd(buffer, size);
    
    951
    -    
    
    951
    +
    
    952 952
         while (result == NULL && errno == ERANGE) {
    
    953 953
     	/*
    
    954 954
     	 * Buffer is too small, double its size and try again.
    
    ... ... @@ -969,5 +969,3 @@ os_getcwd(void)
    969 969
     
    
    970 970
         return result;
    
    971 971
     }
    972
    -
    
    973
    -