Merge pull request #72 from akuhtr/master

Fix debug assertation.
This commit is contained in:
John McNamara 2016-10-12 23:11:26 +01:00 committed by GitHub
commit f8bcdbcf7f

View file

@ -441,7 +441,7 @@ lxw_quote_sheetname(const char *str)
/* Check if the sheetname contains any characters that require it
* to be quoted. Also check for single quotes within the string. */
for (i = 0; i < len; i++) {
if (!isalnum(str[i]) && str[i] != '_' && str[i] != '.')
if (!isalnum((unsigned char)str[i]) && str[i] != '_' && str[i] != '.')
needs_quoting = 1;
if (str[i] == '\'') {