From 9a7ed26eff6b520a73f34c25d60b9f9b0adfd923 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sat, 8 May 2004 00:43:33 +0000
Subject: [PATCH] Use unsigned char* for prep_desc() argument. Fixes problem
 with ex-ASCII chars following space.

---
 src/sbbs3/addfiles.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/addfiles.c b/src/sbbs3/addfiles.c
index 9c2a7a6da2..d933004f3d 100644
--- a/src/sbbs3/addfiles.c
+++ b/src/sbbs3/addfiles.c
@@ -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;
-- 
GitLab