mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-08 09:23:17 +00:00
Fix returnvalue from decode
This commit is contained in:
parent
0d08be747f
commit
7d7a81374e
|
@ -180,7 +180,7 @@ decode_data(char *dest, int size, const char *src, char *srcend)
|
||||||
*dest++ = *src++;
|
*dest++ = *src++;
|
||||||
|
|
||||||
ep = encoded;
|
ep = encoded;
|
||||||
while(len < size && src < srcend) {
|
while(src < srcend) {
|
||||||
if(*src == '.') {
|
if(*src == '.') {
|
||||||
src++;
|
src++;
|
||||||
continue;
|
continue;
|
||||||
|
@ -191,6 +191,7 @@ decode_data(char *dest, int size, const char *src, char *srcend)
|
||||||
chunks = strlen(encoded) / 8;
|
chunks = strlen(encoded) / 8;
|
||||||
padded = strlen(encoded) % 8;
|
padded = strlen(encoded) % 8;
|
||||||
|
|
||||||
|
len = 0;
|
||||||
ep = encoded;
|
ep = encoded;
|
||||||
for (i = 0; i < chunks-1; i++) {
|
for (i = 0; i < chunks-1; i++) {
|
||||||
decode_chunk(dest, ep);
|
decode_chunk(dest, ep);
|
||||||
|
|
Loading…
Reference in a new issue