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]);