if
cursor = “realm="acs", qop="auth", nonce="20e9345b45ea5c6d8b2a5e8f0e48572a", opaque="a501bd376871fd17cd3dff5cec98c232"”
/* Find next quotation mark /
if (NULL == (cursor = strchr(++cursor, '"'))) {
/ End of string /
break;
}
/ Comma should be after */
cursor++;
*cursor will be '"'
*(cursor++) = '\0';
*cursor will equal unknow character
so need to fix it as follows:
if(*cursor != '\0')
*(cursor++) = '\0';
else
break;