diff --git a/src/scode.c b/src/scode.c index 6aeece9..68e634b 100644 --- a/src/scode.c +++ b/src/scode.c @@ -83,8 +83,8 @@ char *decode_scode(struct image *img) } image_free(tmp1); + result[cur] = '\0'; - result[cur] = 0; return result; }