From: Eric Biggers Date: Thu, 22 May 2014 16:52:58 +0000 (-0500) Subject: win32_apply.c: Use sizeof(wchar_t) X-Git-Tag: v1.7.0~122 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=5f95262bcecc05136368999e079973e4771b24a3 win32_apply.c: Use sizeof(wchar_t) --- diff --git a/src/win32_apply.c b/src/win32_apply.c index f741b447..2926883c 100644 --- a/src/win32_apply.c +++ b/src/win32_apply.c @@ -482,7 +482,7 @@ build_win32_extraction_path(const struct wim_dentry *dentry, ctx->pathbuf.Length += ctx->target_ntpath.Length + sizeof(wchar_t); ctx->pathbuf.Buffer[ctx->pathbuf.Length / sizeof(wchar_t)] = L'\0'; - wimlib_assert(ctx->pathbuf.Length >= 8 && + wimlib_assert(ctx->pathbuf.Length >= 4 * sizeof(wchar_t) && !wmemcmp(ctx->pathbuf.Buffer, L"\\??\\", 4)); ctx->pathbuf.Buffer[1] = L'\\';