X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Futil.c;h=2d151478164f247bca678f6583d7ae71a86550fa;hb=dc9b749a16fde09e45f3d3175aec680d38f3d298;hp=b2e59e40417c3a4a555770a0d6d462f632466e6a;hpb=37deb2abf62d62ca7f3d53472bf0b6fe6e6221cc;p=wimlib diff --git a/src/util.c b/src/util.c index b2e59e40..2d151478 100644 --- a/src/util.c +++ b/src/util.c @@ -162,9 +162,9 @@ wimlib_vmsg(const tchar *tag, const tchar *format, tfputs(tag, stderr); wimlib_vfprintf(stderr, format, va); if (perror && errno_save != 0) { - tchar buf[50]; + tchar buf[64]; int res; - res = tstrerror_r(errno_save, buf, sizeof(buf)); + res = tstrerror_r(errno_save, buf, ARRAY_LEN(buf)); if (res) { tsprintf(buf, T("unknown error (errno=%d)"),