[svn-commits] tilghman: branch tilghman/malloc_hold r244066 - /team/tilghman/malloc_hold/main/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Feb 1 10:34:18 CST 2010


Author: tilghman
Date: Mon Feb  1 10:34:16 2010
New Revision: 244066

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=244066
Log:
Bits got mistakenly reversed

Modified:
    team/tilghman/malloc_hold/main/astmm.c

Modified: team/tilghman/malloc_hold/main/astmm.c
URL: http://svnview.digium.com/svn/asterisk/team/tilghman/malloc_hold/main/astmm.c?view=diff&rev=244066&r1=244065&r2=244066
==============================================================================
--- team/tilghman/malloc_hold/main/astmm.c (original)
+++ team/tilghman/malloc_hold/main/astmm.c Mon Feb  1 10:34:16 2010
@@ -755,7 +755,7 @@
 	}
 
 	len = strlen(s) + 1;
-	if ((ptr = __ast_alloc_region(len, FUNC_STRDUP, file, lineno, func, 1))) {
+	if ((ptr = __ast_alloc_region(len, FUNC_STRDUP, file, lineno, func, 0))) {
 		strcpy(ptr, s);
 	}
 
@@ -771,7 +771,7 @@
 		return NULL;
 
 	len = strlen(s) + 1;
-	if ((ptr = __ast_hold_alloc_region(len, FUNC_STRDUP, file, lineno, func, 1))) {
+	if ((ptr = __ast_hold_alloc_region(len, FUNC_STRDUP, file, lineno, func, 0))) {
 		strcpy(ptr, s);
 	}
 
@@ -791,7 +791,7 @@
 	if (len > n) {
 		len = n;
 	}
-	if ((ptr = __ast_alloc_region(len, FUNC_STRNDUP, file, lineno, func, 1))) {
+	if ((ptr = __ast_alloc_region(len, FUNC_STRNDUP, file, lineno, func, 0))) {
 		strcpy(ptr, s);
 	}
 
@@ -811,7 +811,7 @@
 	if (len > n) {
 		len = n;
 	}
-	if ((ptr = __ast_hold_alloc_region(len, FUNC_STRNDUP, file, lineno, func, 1))) {
+	if ((ptr = __ast_hold_alloc_region(len, FUNC_STRNDUP, file, lineno, func, 0))) {
 		strcpy(ptr, s);
 	}
 
@@ -829,7 +829,7 @@
 	va_copy(ap2, ap);
 	size = vsnprintf(&s, 1, fmt, ap2);
 	va_end(ap2);
-	if (!(*strp = __ast_hold_alloc_region(size + 1, FUNC_ASPRINTF, file, lineno, func, 1))) {
+	if (!(*strp = __ast_hold_alloc_region(size + 1, FUNC_ASPRINTF, file, lineno, func, 0))) {
 		va_end(ap);
 		return -1;
 	}
@@ -850,7 +850,7 @@
 	va_copy(ap2, ap);
 	size = vsnprintf(&s, 1, fmt, ap2);
 	va_end(ap2);
-	if (!(*strp = __ast_alloc_region(size + 1, FUNC_ASPRINTF, file, lineno, func, 1))) {
+	if (!(*strp = __ast_alloc_region(size + 1, FUNC_ASPRINTF, file, lineno, func, 0))) {
 		va_end(ap);
 		return -1;
 	}
@@ -870,7 +870,7 @@
 	va_copy(ap2, ap);
 	size = vsnprintf(&s, 1, fmt, ap2);
 	va_end(ap2);
-	if (!(*strp = __ast_hold_alloc_region(size + 1, FUNC_VASPRINTF, file, lineno, func, 1))) {
+	if (!(*strp = __ast_hold_alloc_region(size + 1, FUNC_VASPRINTF, file, lineno, func, 0))) {
 		va_end(ap);
 		return -1;
 	}
@@ -889,7 +889,7 @@
 	va_copy(ap2, ap);
 	size = vsnprintf(&s, 1, fmt, ap2);
 	va_end(ap2);
-	if (!(*strp = __ast_alloc_region(size + 1, FUNC_VASPRINTF, file, lineno, func, 1))) {
+	if (!(*strp = __ast_alloc_region(size + 1, FUNC_VASPRINTF, file, lineno, func, 0))) {
 		va_end(ap);
 		return -1;
 	}




More information about the svn-commits mailing list