[misc] set rufus-next to 1.3.2

* Also fixed a couple Clang, MSVC Analyzer and MinGW64 warnings
This commit is contained in:
Pete Batard 2013-01-20 23:34:13 +00:00
parent 0196de6f4d
commit 8ff8b41273
8 changed files with 24 additions and 27 deletions

View file

@ -550,6 +550,8 @@ fallback:
// Set the file extension filters
ext_strlen = safe_strlen(ext_desc) + 2*safe_strlen(ext) + sizeof(" (*.)\0*.\0All Files (*.*)\0*.*\0\0");
ext_string = (char*)malloc(ext_strlen);
if (ext_string == NULL)
return NULL;
safe_sprintf(ext_string, ext_strlen, "%s (*.%s)\r*.%s\rAll Files (*.*)\r*.*\r\0", ext_desc, ext, ext);
// Microsoft could really have picked a better delimiter!
for (i=0; i<ext_strlen; i++) {