read into pointer, not addr of pointer

This commit is contained in:
Trammell Hudson 2015-02-14 17:42:20 -05:00
parent a038abbce9
commit 254eeb3650

View File

@ -76,7 +76,7 @@ stl_3d_parse(
const size_t file_len = num_triangles * sizeof(*fts);
fts = calloc(1, file_len);
rc = read(fd, &fts, file_len);
rc = read(fd, fts, file_len);
if (rc < 0 || (size_t) rc != file_len)
return NULL;