From 0680236e46084e919c172dc935e246c8378cf990 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Tue, 12 Jan 2016 12:18:05 -0800 Subject: [PATCH] Fix warning --- geojson.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geojson.c b/geojson.c index 06d70c5..b966e3b 100644 --- a/geojson.c +++ b/geojson.c @@ -998,7 +998,7 @@ void *run_start_parsing(void *v) { perror("stat read temp"); } if (a->len != st.st_size) { - fprintf(stderr, "wrong number of bytes in teomporary: %lld vs %lld\n", a->len, st.st_size); + fprintf(stderr, "wrong number of bytes in temporary: %lld vs %lld\n", a->len, (long long) st.st_size); } a->len = st.st_size; @@ -1246,7 +1246,7 @@ int read_json(int argc, char **argv, char *fname, const char *layername, int max int n; while ((n = fread(buf, sizeof(char), READ_BUF, fp)) > 0) { - fwrite(buf, sizeof(char), n, readfp); + fwrite_check(buf, sizeof(char), n, readfp, reading); ahead += n; if (buf[n - 1] == '\n' && ahead > PARSE_MIN && is_parsing == 0) {