- persistent registrations: malloc - space must include terminating \0

This commit is contained in:
Thomas Ries
2003-12-20 19:57:58 +00:00
parent 02ce749229
commit 9526f46589
+1 -1
View File
@@ -83,7 +83,7 @@ void register_init(void) {
if (strchr(buff, 13)) *strchr(buff, 13)='\0';\
if (strlen(buff) > 0) {\
size = strlen(buff);\
X =(char*)malloc(size);\
X =(char*)malloc(size+1);\
sts=sscanf(buff,"%s",X);\
} else {\
X = NULL;\