zip_close warning/bug fix

This commit is contained in:
Henrik Rydgård 2017-03-16 14:00:31 +01:00
parent 9f26d573e6
commit 9bbb3b3c88

View File

@ -699,7 +699,7 @@ _zip_create_temp_output(struct zip *za, FILE **outp)
}
#ifdef UNICODE
swprintf(temp, L"%s.XXXXXX", za->zn);
swprintf(temp, 256, L"%s.XXXXXX", za->zn);
#else
sprintf(temp, "%s.XXXXXX", za->zn);
#endif