Skip to content
Browse files

Fix error message

  • Loading branch information...
1 parent 279e2d3 commit a225de14c277f3f534319309402a997f7922d1e7 @icefox committed Jun 1, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 common/cmdlib.c
View
4 common/cmdlib.c
@@ -425,14 +425,14 @@ FILE *SafeOpenRead (char *filename)
void SafeRead (FILE *f, void *buffer, int count)
{
if ( fread (buffer, 1, count, f) != (size_t)count)
- Error ("File read failure");
+ Error ("SafeRead: File read failure. count: %d", count);
}
void SafeWrite (FILE *f, void *buffer, int count)
{
if (fwrite (buffer, 1, count, f) != (size_t)count)
- Error ("File read failure");
+ Error ("SafeWrite: File write failure. count: %d", count);
}

0 comments on commit a225de1

Please sign in to comment.
Something went wrong with that request. Please try again.