Browse Source

Merge pull request #311 from jj1118/master

Fix error C3688 when compiling on Visual Studio 2015
tags/json-c-0.13-20171207
Eric Haszlakiewicz GitHub 8 years ago
parent
commit
6bd86d1044
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      json_object.c

+ 1
- 1
json_object.c View File

@@ -590,7 +590,7 @@ static int json_object_int_to_json_string(struct json_object* jso,
{ {
/* room for 19 digits, the sign char, and a null term */ /* room for 19 digits, the sign char, and a null term */
static char sbuf[21]; static char sbuf[21];
snprintf(sbuf, sizeof(sbuf), "%"PRId64, jso->o.c_int64);
snprintf(sbuf, sizeof(sbuf), "%" PRId64, jso->o.c_int64);
return printbuf_memappend (pb, sbuf, strlen(sbuf)); return printbuf_memappend (pb, sbuf, strlen(sbuf));
} }




Loading…
Cancel
Save