364 |
strncat(result, buf + match[1].rm_so, |
strncat(result, buf + match[1].rm_so, |
365 |
min(match[1].rm_eo - match[1].rm_so, RESULT_BUF - 1)); |
min(match[1].rm_eo - match[1].rm_so, RESULT_BUF - 1)); |
366 |
|
|
367 |
if (!strcasecmp(buf + match[2].rm_so, "NO")) |
if (!strncasecmp(buf + match[2].rm_so, "NO", 2)) |
368 |
r = RESPONSE_NO; |
r = RESPONSE_NO; |
369 |
else if (!strcasecmp(buf + match[2].rm_so, "BAD")) |
else if (!strncasecmp(buf + match[2].rm_so, "BAD", 3)) |
370 |
r = RESPONSE_BAD; |
r = RESPONSE_BAD; |
371 |
|
|
372 |
verbose("Server response: %s\n", result); |
verbose("Server response: %s\n", result); |