Commits

paulc committed afdc5c0

Fix buffer error in sdsreadfile

Comments (0)

Files changed (1)

 
 sds sdsreadfile(FILE *fp) {
 	int n;
-    char buf[1024];
+    char buf[READ_BUF];
     sds data = sdsempty();
     while ((n = fread(buf,1,READ_BUF,fp)) > 0) { 
         data = sdscatlen(data,buf,n);