Changeset 149 for trunk/src/sh_unix.c
- Timestamp:
- Jan 7, 2008, 8:52:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_unix.c
r143 r149 2881 2881 int sh_unix_get_ftype(char * fullpath) 2882 2882 { 2883 char c_mode[ 16];2883 char c_mode[CMODE_SIZE]; 2884 2884 struct stat buf; 2885 2885 ShFileType type; … … 3449 3449 /* --- Determine file type. --- 3450 3450 */ 3451 memset (theFile->c_mode, '-', 10);3452 theFile->c_mode[ 10] = '\0';3453 3454 memset (theFile->link_c_mode, '-', 10);3455 theFile->link_c_mode[ 10] = '\0';3451 memset (theFile->c_mode, '-', CMODE_SIZE-1); 3452 theFile->c_mode[CMODE_SIZE-1] = '\0'; 3453 3454 memset (theFile->link_c_mode, '-', CMODE_SIZE-1); 3455 theFile->link_c_mode[CMODE_SIZE-1] = '\0'; 3456 3456 3457 3457 sh_unix_getinfo_type (&buf, &type, theFile->c_mode); … … 3462 3462 /* --- Determine file attributes. --- 3463 3463 */ 3464 memset (theFile->c_attributes, '-', 12);3465 theFile->c_attributes[ 12] = '\0';3464 memset (theFile->c_attributes, '-', ATTRBUF_SIZE); 3465 theFile->c_attributes[ATTRBUF_USED] = '\0'; 3466 3466 theFile->attributes = 0; 3467 3467
Note:
See TracChangeset
for help on using the changeset viewer.