From 3d00dc91765216387211f56970244e0ea6766da4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Korpesio?= Date: Thu, 20 Jan 2022 08:24:29 +0000 Subject: [PATCH] Update 'sk2a/compressor.c' --- sk2a/compressor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sk2a/compressor.c b/sk2a/compressor.c index bbe266d..500dd46 100644 --- a/sk2a/compressor.c +++ b/sk2a/compressor.c @@ -235,13 +235,13 @@ int mylz78decompress(char* buff,int size,char** outbuf){ words[index][strlen(words[number])] = c; // ak nam nebude stacit miesto v *outbuf, treba allocovat viac - while((strlen(words[index]) + pos) > (size - 1)){ + /*while((strlen(words[index]) + pos) > (size - 1)){ size *= 2; char *tempbuf = calloc(size,sizeof(char)); memset(tempbuf,'\0',size); strcpy(tempbuf,*outbuf); *outbuf = tempbuf; - } + }*/ strcpy(*outbuf + pos,words[index]); pos += strlen(words[index]);