diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-05-09 17:10:06 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-05-09 17:10:06 +0000 |
commit | 5d564d08125526d153928adcf872ed30827de6ed (patch) | |
tree | 6f17272de93fe03a3b19ab0210814fea5ea51b71 /src/htslib.c | |
parent | 90404c36f6ce33386242c00b41ec154dce65b30a (diff) |
Fixed a bunch of warnings.
Diffstat (limited to 'src/htslib.c')
-rw-r--r-- | src/htslib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/htslib.c b/src/htslib.c index f98adff..1a95a67 100644 --- a/src/htslib.c +++ b/src/htslib.c @@ -885,7 +885,9 @@ int http_sendhead(httrackp *opt,t_cookie* cookie,int mode,char* xsend,char* adr, else sprintf(buff,"%s %s %s\r\n",method,url,protocol); // lire le reste en brut - fread(buff+strlen(buff),8000-strlen(buff),1,fp); + if (fread(buff+strlen(buff),8000-strlen(buff),1,fp) < 0) { + return -1; + } } fclose(fp); } |