[asterisk-commits] dbailey: branch 1.6.1 r176962 - in /branches/1.6.1: ./ main/utils.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 18 10:20:10 CST 2009


Author: dbailey
Date: Wed Feb 18 10:20:10 2009
New Revision: 176962

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=176962
Log:
Merged revisions 176948 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r176948 | dbailey | 2009-02-18 10:09:12 -0600 (Wed, 18 Feb 2009) | 2 lines
  
  Need to take into account the \0 terminator of the old string to determine the amount available.
........

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/main/utils.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/main/utils.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.1/main/utils.c?view=diff&rev=176962&r1=176961&r2=176962
==============================================================================
--- branches/1.6.1/main/utils.c (original)
+++ branches/1.6.1/main/utils.c Wed Feb 18 10:20:10 2009
@@ -1600,7 +1600,7 @@
 	*/
 	if ((*ptr)[0] != '0') {
 		target = (char *) *ptr;
-		available = strlen(target);
+		available = strlen(target) + 1;
 	} else {
 		target = (*pool_head)->base + mgr->used;
 		available = space;




More information about the asterisk-commits mailing list