[grisbi-cvs] grisbi/src utils_str.c,1.66,1.67
Pierre Biava
pbiava at users.sourceforge.net
Tue Sep 15 07:44:58 CEST 2009
Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv31652
Modified Files:
utils_str.c
Log Message:
correction crash if ptr_debut == NULL
Index: utils_str.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/utils_str.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- utils_str.c 24 Aug 2009 08:36:39 -0000 1.66
+++ utils_str.c 15 Sep 2009 05:44:56 -0000 1.67
@@ -745,6 +745,9 @@
gchar *chaine;
ptr_debut = g_strstr_len ( str, -1, old_str);
+ if ( ptr_debut == NULL )
+ g_strdup ( str );
+
long_old = g_utf8_strlen ( old_str, -1 );
chaine = g_strndup ( str, (ptr_debut - str) );
chaine = g_strconcat ( chaine, new_str, ( ptr_debut + long_old ), NULL );
More information about the cvs
mailing list