Changeset 332

Show
Ignore:
Timestamp:
11/28/99 20:57:05 (14 years ago)
Author:
ucacoxh
Message:

- shouldn't put \n in file names.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • common/trunk/src/debug.c

    r331 r332  
    155155        /* and developers should know better than to have 64 char   */ 
    156156        /* app name.                                                */ 
    157         sprintf(coredir, "core-%s\n", appname); 
     157        sprintf(coredir, "core-%s", appname); 
    158158 
    159159        mkdir(coredir, S_IRWXU); 
     
    170170                return; 
    171171        } 
    172         chdir(coredir); 
     172        if (!chdir(coredir)) { 
     173                perror(coredir); 
     174        } 
    173175#endif /* DEBUG */ 
    174176        UNUSED(argv0);