Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,7 @@ int lprintf(int level, char *fmat, ...) ...@@ -80,7 +80,7 @@ int lprintf(int level, char *fmat, ...)
return(chcount); return(chcount);
} }
void prep_desc(char *str) void prep_desc(uchar *str)
{ {
char tmp[1024]; char tmp[1024];
int i,j; int i,j;
...@@ -92,7 +92,7 @@ void prep_desc(char *str) ...@@ -92,7 +92,7 @@ void prep_desc(char *str)
continue; continue;
else if(i && !isalnum(str[i]) && str[i]==str[i-1]) else if(i && !isalnum(str[i]) && str[i]==str[i-1])
continue; continue;
else if((uchar)str[i]>=SP) else if(str[i]>=SP)
tmp[j++]=str[i]; tmp[j++]=str[i];
else if(str[i]==TAB || (str[i]==CR && str[i+1]==LF)) else if(str[i]==TAB || (str[i]==CR && str[i+1]==LF))
tmp[j++]=SP; tmp[j++]=SP;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment