mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
adjust the test very slightly
git-svn-id: svn://svn.code.sf.net/p/cjson/code@68 e3330c51-1366-4df0-8b21-3ccf24e3d50e
This commit is contained in:
parent
b44a338c6d
commit
9d0a4cbf2a
2
cJSON.c
2
cJSON.c
@ -253,7 +253,7 @@ static char *print_string_ptr(const char *str,printbuffer *p)
|
|||||||
{
|
{
|
||||||
const char *ptr;char *ptr2,*out;int len=0,flag=0;unsigned char token;
|
const char *ptr;char *ptr2,*out;int len=0,flag=0;unsigned char token;
|
||||||
|
|
||||||
for (ptr=str;*ptr;ptr++) flag|=((*ptr>=0 && *ptr<32)||(*ptr=='\"')||(*ptr=='\\'))?1:0;
|
for (ptr=str;*ptr;ptr++) flag|=((*ptr>0 && *ptr<32)||(*ptr=='\"')||(*ptr=='\\'))?1:0;
|
||||||
if (!flag)
|
if (!flag)
|
||||||
{
|
{
|
||||||
len=ptr-str;
|
len=ptr-str;
|
||||||
|
Loading…
Reference in New Issue
Block a user