Sfoglia il codice sorgente

Fixed #567 fread size calculation

vurtun 7 anni fa
parent
commit
2fda853572
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      nuklear.h

+ 1 - 1
nuklear.h

@@ -5643,7 +5643,7 @@ nk_file_load(const char* path, nk_size* siz, struct nk_allocator *alloc)
         fclose(fd);
         return 0;
     }
-    *siz = (nk_size)fread(buf, *siz, 1, fd);
+    *siz = (nk_size)fread(buf, 1,*siz, fd);
     fclose(fd);
     return buf;
 }