[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
- Previous message: [dovecot-cvs] dovecot COPYING,1.4,1.5
- Next message: [dovecot-cvs] dovecot/src/lib printf-upper-bound.c,NONE,1.1 printf-upper-bound.h,NONE,1.1 Makefile.am,1.24,1.25 data-stack.c,1.12,1.13 failures.c,1.12,1.13 imem.c,1.4,1.5 imem.h,1.4,1.5 mempool-alloconly.c,1.13,1.14 mempool-datastack.c,1.2,1.3 Message-Id: <20021222070618.C5D342382C@danu.procontrol.fi>
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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;
}
- Previous message: [dovecot-cvs] dovecot COPYING,1.4,1.5
- Next message: [dovecot-cvs] dovecot/src/lib printf-upper-bound.c,NONE,1.1 printf-upper-bound.h,NONE,1.1 Makefile.am,1.24,1.25 data-stack.c,1.12,1.13 failures.c,1.12,1.13 imem.c,1.4,1.5 imem.h,1.4,1.5 mempool-alloconly.c,1.13,1.14 mempool-datastack.c,1.2,1.3 Message-Id: <20021222070618.C5D342382C@danu.procontrol.fi>
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list