summaryrefslogtreecommitdiff
path: root/src/htslib.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2012-03-19 13:04:25 +0000
committerXavier Roche <xroche@users.noreply.github.com>2012-03-19 13:04:25 +0000
commit388b7dee2a2d558c0ee576a9213b5ea422a56c77 (patch)
tree4c0f66930ae08593dd39134395b42bcec7a15d61 /src/htslib.c
parent0183f4dd84d8cc44d617fb48436881e79e2bf0f2 (diff)
httrack 3.45.1
Diffstat (limited to 'src/htslib.c')
-rw-r--r--src/htslib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/htslib.c b/src/htslib.c
index ff41d4f..34ebb15 100644
--- a/src/htslib.c
+++ b/src/htslib.c
@@ -1856,7 +1856,7 @@ LLint http_xfread1(htsblk* r,int bufl) {
int count=256;
int tot_nl=0;
int lf_detected=0;
- int at_begining=1;
+ int at_beginning=1;
do {
nl = READ_INTERNAL_ERROR;
count--;
@@ -1874,7 +1874,7 @@ LLint http_xfread1(htsblk* r,int bufl) {
// or
// lf detected AND first character read
if (*(r->adr+r->size) == 10) {
- if (lf_detected || (at_begining) || (bufl<0))
+ if (lf_detected || (at_beginning) || (bufl<0))
count=-1;
lf_detected=1;
}
@@ -1888,7 +1888,7 @@ LLint http_xfread1(htsblk* r,int bufl) {
lf_detected=0;
}
(r->size)++;
- at_begining=0;
+ at_beginning=0;
}
*(r->adr+r->size)='\0'; // terminer par octet nul
}
@@ -4026,7 +4026,7 @@ int get_userhttptype(httrackp *opt, char *s, const char *fil) {
/* Check --assume foooo/foo/bar.cgi=text/html, then foo/bar.cgi=text/html, then bar.cgi=text/html */
/* also: --assume baz,bar,foooo/foo/bar.cgi=text/html */
- /* start from path begining */
+ /* start from path beginning */
do {
const char* next;
const char* mimedefs = StringBuff(opt->mimedefs); /* loop through mime definitions : \nfoo=bar\nzoo=baz\n.. */
@@ -4297,7 +4297,7 @@ void fprintfio(FILE* fp,char* buff,char* prefix) {
break;
default:
if (nl)
- fprintf(fp,prefix);
+ fprintf(fp,"%s", prefix);
nl=0;
fputc(*buff,fp);
}