Closed lmcmgig closed 8 years ago
Hi,
The stripQuotes function doesn't handle the empty string case correctly. Just one if to adjust:
void StrBld::stripQuotes(bool allowsingle) { [...] if ((c1 == '"' && c2 == '"') || (allowsingle && c1 == '\'' && c2 == '\'') ) { mLen--;
* if (mLen >= 1) * instead of if (mLen > 1) { memmove(buf, buf + 1, mLen); [...] }
Fixed Thanks lmcmgig!
Hi,
The stripQuotes function doesn't handle the empty string case correctly. Just one if to adjust:
void StrBld::stripQuotes(bool allowsingle) { [...] if ((c1 == '"' && c2 == '"') || (allowsingle && c1 == '\'' && c2 == '\'') ) { mLen--;
* if (mLen >= 1) * instead of if (mLen > 1) { memmove(buf, buf + 1, mLen); [...] }