From: George Lu Date: Fri, 1 Jun 2018 00:47:29 +0000 (-0700) Subject: removed strcats X-Git-Tag: v1.3.5~3^2~34^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9b1068298ec8c92b611ed9d6c98a3d8c45f0b10;p=thirdparty%2Fzstd.git removed strcats --- diff --git a/programs/fileio.c b/programs/fileio.c index a1da4bc3b..b1d2a2415 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -1754,16 +1754,17 @@ int FIO_decompressMultipleFilenames(const char** srcNamesTable, unsigned nbFiles && strcmp(suffixPtr, ZSTD_EXTENSION) && strcmp(suffixPtr, LZMA_EXTENSION) && strcmp(suffixPtr, LZ4_EXTENSION)) ) { - char suffixlist[50] = ZSTD_EXTENSION; - #ifdef ZSTD_GZCOMPRESS - strcat(suffixlist, "/" GZ_EXTENSION); + const char* suffixlist = ZSTD_EXTENSION + #ifdef ZSTD_GZCOMPRESS + "/" GZ_EXTENSION #endif #ifdef ZSTD_LZMACOMPRESS - strcat(suffixlist, "/" XZ_EXTENSION "/" LZMA_EXTENSION); + "/" XZ_EXTENSION "/" LZMA_EXTENSION #endif #ifdef ZSTD_LZ4COMPRESS - strcat(suffixlist, "/" LZ4_EXTENSION); + "/" LZ4_EXTENSION #endif + ; DISPLAYLEVEL(1, "zstd: %s: unknown suffix (%s expected) -- ignored \n", srcFileName, suffixlist); skippedFiles++;