Possibly a rather embarrassing bug fix... :)

This commit is contained in:
alexhudson
2009-04-15 19:44:22 +00:00
parent ea6e60b217
commit f773e2a2f4
+1 -1
View File
@@ -41,7 +41,7 @@ BongoJsonJPath(BongoJsonNode *root, const char *path)
if (! nextrule) {
strncpy(rule, path, 49);
rulelen = 50;
rulelen = 49;
} else {
strncpy(rule, path, min(nextrule - path, 49));
rulelen = nextrule - path;