[dovecot-cvs] dovecot/src/master settings.c,1.35,1.36

cras at procontrol.fi cras at procontrol.fi
Sun Dec 22 09:06:18 EET 2002


Update of /home/cvs/dovecot/src/master
In directory danu:/tmp/cvs-serv1084/src/master

Modified Files:
	settings.c 
Log Message:
String function cleanups. Allocating 0 bytes of memory is treated as error
now, it could be an integer overflow. Moved printf_string_upper_bound() to  
it's own file, so strfuncs.c can be with MIT license.



Index: settings.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/settings.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- settings.c	21 Dec 2002 12:42:36 -0000	1.35
+++ settings.c	22 Dec 2002 07:06:16 -0000	1.36
@@ -361,7 +361,8 @@
 		ptr = NULL;
 
 	if (ptr != NULL) {
-		i_strdup_replace(ptr, value);
+		i_free(*ptr);
+		*ptr = i_strdup(value);
 		return NULL;
 	}
 




More information about the dovecot-cvs mailing list