[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-247-gdc3d5e1
Volker Lendecke
vlendec at samba.org
Sat Mar 15 20:59:39 GMT 2008
The branch, v3-2-test has been updated
via dc3d5e16452bf30055638ba3cfe99097fb557156 (commit)
from e12721f73db72b99aa0e4be35c51aa8636eb3f59 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit dc3d5e16452bf30055638ba3cfe99097fb557156
Author: Volker Lendecke <vl at samba.org>
Date: Sat Mar 15 21:47:22 2008 +0100
Allocate one 0-byte in asprintf replacement when len==0
Some S3 code depends on this.
-----------------------------------------------------------------------
Summary of changes:
source/lib/replace/snprintf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/lib/replace/snprintf.c b/source/lib/replace/snprintf.c
index 9f8a765..a174dcf 100644
--- a/source/lib/replace/snprintf.c
+++ b/source/lib/replace/snprintf.c
@@ -1264,7 +1264,7 @@ static int add_cnk_list_entry(struct pr_chunk_x **list,
VA_COPY(ap2, ap);
ret = vsnprintf(NULL, 0, format, ap2);
va_end(ap2);
- if (ret <= 0) return ret;
+ if (ret < 0) return ret;
(*ptr) = (char *)malloc(ret+1);
if (!*ptr) return -1;
--
Samba Shared Repository
More information about the samba-cvs
mailing list