[asterisk-commits] dbailey: branch 1.6.0 r177004 - in /branches/1.6.0: ./ main/utils.c

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


Author: dbailey
Date: Wed Feb 18 10:30:15 2009
New Revision: 177004

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=177004
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.0/   (props changed)
    branches/1.6.0/main/utils.c

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

Modified: branches/1.6.0/main/utils.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.0/main/utils.c?view=diff&rev=177004&r1=177003&r2=177004
==============================================================================
--- branches/1.6.0/main/utils.c (original)
+++ branches/1.6.0/main/utils.c Wed Feb 18 10:30:15 2009
@@ -1493,7 +1493,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