From 254eeb36502fc43a84d0b5d9da21e8e46210ad12 Mon Sep 17 00:00:00 2001 From: Trammell Hudson Date: Sat, 14 Feb 2015 17:42:20 -0500 Subject: [PATCH] read into pointer, not addr of pointer --- stl_3d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stl_3d.c b/stl_3d.c index 5cbb20f..fcd5d03 100644 --- a/stl_3d.c +++ b/stl_3d.c @@ -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;