]> granicus.if.org Git - json-c/commit
Use strdup instead of strndup in test1.c, there's no need for the latter because...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Fri, 3 Feb 2017 17:10:27 +0000 (17:10 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Fri, 3 Feb 2017 17:10:27 +0000 (17:10 +0000)
commit75825a9f01292f8dfe5c1aa1dc002acae738a153
tree0529eed14d1be6c4dea11efdb1b12686a0c696a4
parent8157784483483214778513465509a6169b634a14
Use strdup instead of strndup in test1.c, there's no need for the latter because json_object_to_json_string_length() will always return a properly sized string.
tests/test1.c