From cea614b50432cd54eb71ee6fc173ec93e5540625 Mon Sep 17 00:00:00 2001
From: Per Cederqvist <ceder@lysator.liu.se>
Date: Sat, 6 Jul 1991 07:56:24 +0000
Subject: [PATCH] Fixed char -> unsigned char in s_mem_crea_str. Removed
 left-over reference conuting.

---
 src/libraries/libmisc/s-string.c | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/libraries/libmisc/s-string.c b/src/libraries/libmisc/s-string.c
index ae34c0706..7874163b6 100644
--- a/src/libraries/libmisc/s-string.c
+++ b/src/libraries/libmisc/s-string.c
@@ -126,9 +126,9 @@ s_crea_str (String	* dest_string,
  */
 
 EXPORT  Success
-s_mem_crea_str (String	    * dest_string,
-	    	const char  * buffer,
-	    	String_size   length)
+s_mem_crea_str (String	    	     * dest_string,
+	    	const unsigned char  * buffer,
+	    	String_size   	       length)
 {
     void		* temp_ptr;	/* To hold result from malloc/realloc
 					 * before actually using it.  */
@@ -139,9 +139,6 @@ s_mem_crea_str (String	    * dest_string,
 	return FAILURE;
     }
 
-    if ( dest_string->string == NULL )
-	++no_of_allocated_strings;
-
     FREE_0 (dest_string->string);
     dest_string->string = temp_ptr;
     
@@ -174,9 +171,6 @@ s_size_crea_str(String      *result,
 	return FAILURE;
     }
 
-    if ( result->string == NULL )
-	++no_of_allocated_strings;
-
     FREE_0 (result->string);
     result->string = temp_ptr;
     result->len = length;
-- 
GitLab