Skip to content

Commit

Permalink
resolve crash in json_reformatter due to incorrectly ordered parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
lloyd committed Apr 1, 2009
1 parent 735ac9f commit 6c00f29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -34,7 +34,7 @@ PROJECT(YetAnotherJSONParser)

SET (YAJL_MAJOR 1)
SET (YAJL_MINOR 0)
SET (YAJL_MICRO 0)
SET (YAJL_MICRO 1)

SET (YAJL_DIST_NAME "yajl-${YAJL_MAJOR}.${YAJL_MINOR}.${YAJL_MICRO}")

Expand Down
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
1.0.1
* lth resolve crash in json_reformatter due to incorrectly ordered
parameters.

1.0.0
* lth add 'make install' rules, thaks to Andrei Soroker for the
contribution.
Expand Down
2 changes: 1 addition & 1 deletion reformatter/json_reformat.c
Expand Up @@ -159,7 +159,7 @@ main(int argc, char ** argv)
g = yajl_gen_alloc(&conf, NULL);

/* ok. open file. let's read and parse */
hand = yajl_alloc(&callbacks, &cfg, (void *) g, NULL);
hand = yajl_alloc(&callbacks, &cfg, NULL, (void *) g);

while (!done) {
rd = fread((void *) fileData, 1, sizeof(fileData) - 1, stdin);
Expand Down

0 comments on commit 6c00f29

Please sign in to comment.