Ticket #21611: patch-displib.c.diff
File patch-displib.c.diff, 745 bytes (added by mjhsieh@…, 15 years ago) |
---|
-
displib.c
old new 76 76 77 77 if ( nread != n ) 78 78 { 79 fprintf(stderr,"Unable to fread(% d elements of size %d). fread() returned %d Error: %s\n",n,size,nread,strerror(errno));79 fprintf(stderr,"Unable to fread(%ld elements of size %ld). fread() returned %ld Error: %s\n",n,size,nread,strerror(errno)); 80 80 exit(EXIT_FAILURE); 81 81 } 82 82 } … … 89 89 90 90 if ( nwritten != n ) 91 91 { 92 fprintf(stderr,"Unable to fwrite(% d elements of size %d): %s\n",n,size,strerror(errno));92 fprintf(stderr,"Unable to fwrite(%ld elements of size %ld): %s\n",n,size,strerror(errno)); 93 93 exit(EXIT_FAILURE); 94 94 } 95 95 }