remove warnings
This commit is contained in:
parent
b4f14ed6f7
commit
71deab2eec
@ -17,7 +17,7 @@ int fmt_urlencoded_sa(stralloc *sa,const char* src,unsigned int len) {
|
|||||||
char dest[3] = {'%'};
|
char dest[3] = {'%'};
|
||||||
dest[1]=tohex(s[i]>>4);
|
dest[1]=tohex(s[i]>>4);
|
||||||
dest[2]=tohex(s[i]&15);
|
dest[2]=tohex(s[i]&15);
|
||||||
if (!stralloc_catb(sa, &dest, 3)) return 0;
|
if (!stralloc_catb(sa, dest, 3)) return 0;
|
||||||
} else {
|
} else {
|
||||||
if (!stralloc_catb(sa, s+i, 1)) return 0;
|
if (!stralloc_catb(sa, s+i, 1)) return 0;
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ int fmt_uuencoded_sa(stralloc* sa,const char* src,unsigned int len) {
|
|||||||
dest[2]=enc((tmp>>(1*6))&077);
|
dest[2]=enc((tmp>>(1*6))&077);
|
||||||
dest[3]=enc(tmp&077);
|
dest[3]=enc(tmp&077);
|
||||||
s+=3;
|
s+=3;
|
||||||
if (!stralloc_catb(sa,&dest,4)) return 0;
|
if (!stralloc_catb(sa,dest,4)) return 0;
|
||||||
}
|
}
|
||||||
if (!stralloc_catb(sa,"\n",1)) return 0;
|
if (!stralloc_catb(sa,"\n",1)) return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user