Enlightenment CVS committal Author : mej Project : eterm Module : libast
Dir : eterm/libast/src Modified Files: strings.c Log Message: Sun Feb 5 00:58:03 2006 Michael Jennings (mej) Fixed off-by-1 error in spiftool_join(). ---------------------------------------------------------------------- =================================================================== RCS file: /cvsroot/enlightenment/eterm/libast/src/strings.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -3 -r1.25 -r1.26 --- strings.c 7 Mar 2005 22:29:07 -0000 1.25 +++ strings.c 5 Feb 2006 05:56:01 -0000 1.26 @@ -30,7 +30,7 @@ * @author Michael Jennings <[EMAIL PROTECTED]> */ -static const char __attribute__((unused)) cvs_ident[] = "$Id: strings.c,v 1.25 2005/03/07 22:29:07 mej Exp $"; +static const char __attribute__((unused)) cvs_ident[] = "$Id: strings.c,v 1.26 2006/02/05 05:56:01 mej Exp $"; #ifdef HAVE_CONFIG_H # include <config.h> @@ -454,7 +454,7 @@ len += strlen(SPIF_CHARPTR_C(slist[i])); } len += slen * (i - 1); - new_str = SPIF_CAST(charptr) MALLOC(len); + new_str = SPIF_CAST(charptr) MALLOC(len + 1); strcpy(SPIF_CHARPTR_C(new_str), SPIF_CHARPTR_C(slist[0])); for (i = 1; slist[i]; i++) { if (slen) { ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs