|
@@ -537,7 +537,7 @@ int connect_source(RESTREAMER *r, int retries, int readbuflen, int *http_code) {
|
537
|
537
|
if (strstr(buf,"HTTP/1.") != NULL) {
|
538
|
538
|
if (regexec(&http_response,buf,3,res,0) != REG_NOMATCH) {
|
539
|
539
|
char codestr[4];
|
540
|
|
- if ((unsigned int)res[1].rm_eo-res[1].rm_so < sizeof(xresponse)) {
|
|
540
|
+ if ((unsigned long)(res[1].rm_eo - res[1].rm_so) < sizeof(xresponse)) {
|
541
|
541
|
strncpy(xresponse, &buf[res[1].rm_so], res[1].rm_eo-res[1].rm_so);
|
542
|
542
|
xresponse[res[1].rm_eo-res[1].rm_so] = '\0';
|
543
|
543
|
chomp(xresponse);
|