]> wimlib.net Git - wimlib/blobdiff - src/util.c
Update LZMS match-choosing
[wimlib] / src / util.c
index 27f01c415ff240594d22ed6d7fe5be18fb566f3d..2d151478164f247bca678f6583d7ae71a86550fa 100644 (file)
@@ -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)"),
@@ -424,6 +424,8 @@ static const tchar *error_strings[] = {
                = T("Failed to write data to a file"),
        [WIMLIB_ERR_XML]
                = T("The XML data of the WIM is invalid"),
+       [WIMLIB_ERR_WIM_IS_ENCRYPTED]
+               = T("The WIM file (or parts of it) is encrypted"),
 };
 
 /* API function documented in wimlib.h  */