Commit 85388f39 authored by rswindell's avatar rswindell
Browse files

More typecasts to defeat MSVC10 assertions.

parent beaf2ac2
......@@ -108,7 +108,7 @@ char* DLLCALL strip_space(const char *str, char* dest)
if(dest==NULL && (dest=strdup(str))==NULL)
return NULL;
for(i=j=0;str[i];i++)
if(!isspace(str[i]))
if(!isspace((unsigned char)str[i]))
dest[j++]=str[i];
dest[j]=0;
return dest;
......@@ -131,7 +131,7 @@ char* DLLCALL prep_file_desc(const char *str, char* dest)
}
else if(j && str[i]<=' ' && dest[j-1]==' ')
continue;
else if(i && !isalnum(str[i]) && str[i]==str[i-1])
else if(i && !isalnum((unsigned char)str[i]) && str[i]==str[i-1])
continue;
else if((uchar)str[i]>=' ')
dest[j++]=str[i];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment