Browse Source

remove warnings

master
Felix von Leitner 19 years ago
parent
commit
1f2e5366b8
  1. 2
      textcode/fmt_urlencoded_sa.c
  2. 2
      textcode/fmt_uuencoded_sa.c

2
textcode/fmt_urlencoded_sa.c

@ -17,7 +17,7 @@ int fmt_urlencoded_sa(stralloc *sa,const char* src,unsigned int len) {
char dest[3] = {'%'};
dest[1]=tohex(s[i]>>4);
dest[2]=tohex(s[i]&15);
if (!stralloc_catb(sa, &dest, 3)) return 0;
if (!stralloc_catb(sa, dest, 3)) return 0;
} else {
if (!stralloc_catb(sa, s+i, 1)) return 0;
}

2
textcode/fmt_uuencoded_sa.c

@ -30,7 +30,7 @@ int fmt_uuencoded_sa(stralloc* sa,const char* src,unsigned int len) {
dest[2]=enc((tmp>>(1*6))&077);
dest[3]=enc(tmp&077);
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;
}

Loading…
Cancel
Save