Changeset 63497 in vbox
- Timestamp:
- Aug 15, 2016 5:59:56 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/ipxe/src/util/zbin.c
r47928 r63497 74 74 static int read_file ( const char *filename, void **buf, size_t *len ) { 75 75 FILE *file; 76 struct stat s tat;76 struct stat sstat; 77 77 78 78 file = fopen ( filename, "r" ); … … 83 83 } 84 84 85 if ( fstat ( fileno ( file ), &s tat ) < 0 ) {85 if ( fstat ( fileno ( file ), &sstat ) < 0 ) { 86 86 fprintf ( stderr, "Could not stat %s: %s\n", filename, 87 87 strerror ( errno ) ); … … 89 89 } 90 90 91 *len = s tat.st_size;91 *len = sstat.st_size; 92 92 *buf = malloc ( *len ); 93 93 if ( ! *buf ) {
Note:
See TracChangeset
for help on using the changeset viewer.