Commit 9a7ed26e authored by rswindell's avatar rswindell
Browse files

Use unsigned char* for prep_desc() argument. Fixes problem with ex-ASCII

chars following space.
parent a2813859
......@@ -80,7 +80,7 @@ int lprintf(int level, char *fmat, ...)
return(chcount);
}
void prep_desc(char *str)
void prep_desc(uchar *str)
{
char tmp[1024];
int i,j;
......@@ -92,7 +92,7 @@ void prep_desc(char *str)
continue;
else if(i && !isalnum(str[i]) && str[i]==str[i-1])
continue;
else if((uchar)str[i]>=SP)
else if(str[i]>=SP)
tmp[j++]=str[i];
else if(str[i]==TAB || (str[i]==CR && str[i+1]==LF))
tmp[j++]=SP;
......
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