Soft'N'Design Software
/
projects
/
webserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
best makefile
[webserver.git]
/
file.c
diff --git
a/file.c
b/file.c
index fdcd1ee711f5eb1a194004fcba6a9eb6bbbb98c3..786a895c1b8d9c6b896c3aa921b908079f8847d9 100644
(file)
--- a/
file.c
+++ b/
file.c
@@
-32,7
+32,7
@@
int readfile (char **buffer, char *filename)
VERBOSE (DEBUG, PRINT ("Reading %d bytes\n", size));
*buffer = calloc (size + 1, 1);
VERBOSE (DEBUG, PRINT ("Reading %d bytes\n", size));
*buffer = calloc (size + 1, 1);
- int len = fread (*buffer,
size, 1
, fd);
+ int len = fread (*buffer,
1, size
, fd);
if (len != size) {
VERBOSE (WARNING, PRINT ("Can't read full file (%s)\n", filename));
}
if (len != size) {
VERBOSE (WARNING, PRINT ("Can't read full file (%s)\n", filename));
}