Yes, it was a bug, but the code was actually supposed to be:
if (sscanf(lineStart, "Content-Length: %d", &contentLength) == 1
|| sscanf(lineStart, "Content-length: %d", &contentLength) == 1) {
(Whitespace in the "sscanf()" format string matches any amount of whitespace,
including
Hello,
SIPClient.cpp, line 500
if (sscanf(lineStart, "Content-Length: %d", &contentLength) == 1
|| sscanf(lineStart, "Content-Length: %d", &contentLength) == 1) {
Is this bug?
May be:
if (sscanf(lineStart, "Content-Length: %d", &contentLength) == 1
|| sscanf(lineStart, "Content-Length: