From: Yann Collet Date: Wed, 6 Nov 2019 23:23:44 +0000 (-0800) Subject: Visual compiler bug work-around X-Git-Tag: v1.4.5^2~141^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9df49dc50a1c34d2cc25929af379986e88faaab7;p=thirdparty%2Fzstd.git Visual compiler bug work-around --- diff --git a/programs/util.c b/programs/util.c index 769ec8b73..7839799da 100644 --- a/programs/util.c +++ b/programs/util.c @@ -647,7 +647,7 @@ FileNamesTable* UTIL_createFNT_fromROTable(const char** filenames, size_t nbFile size_t const sizeof_FNTable = nbFilenames * sizeof(*filenames); const char** const newFNTable = (const char**)malloc(sizeof_FNTable); if (newFNTable==NULL) return NULL; - memcpy(newFNTable, filenames, sizeof_FNTable); + memcpy((void*)newFNTable, filenames, sizeof_FNTable); /* void* : mitigate a Visual compiler bug or limitation */ return UTIL_createFileNamesTable(newFNTable, nbFilenames, NULL); }