Re: sum1 - r26573 - abiword/trunk/plugins/xslfo/xp

From: Hubert Figuiere <hfiguiere_at_teaser.fr>
Date: Wed May 27 2009 - 17:55:06 CEST

On 05/27/2009 08:21 AM, cvs@abisource.com wrote:
> Modified: abiword/trunk/plugins/xslfo/xp/ie_exp_XSL-FO.cpp
> ===================================================================
> --- abiword/trunk/plugins/xslfo/xp/ie_exp_XSL-FO.cpp 2009-05-27 12:08:14 UTC (rev 26572)
> +++ abiword/trunk/plugins/xslfo/xp/ie_exp_XSL-FO.cpp 2009-05-27 12:21:49 UTC (rev 26573)
> @@ -107,7 +107,7 @@
> static char *_stripSuffix(const char* from, char delimiter)
> {
> // taken from DocBook exporter
> - char * fremove_s = (char *)malloc(strlen(from)+1);
> + char * fremove_s = (char *)g_try_malloc(strlen(from)+1);
> strcpy(fremove_s, from);

g_try_malloc() but you don't bother checking the return value and pass
it to strcpy()?

Hub
Received on Wed May 27 17:55:22 2009

This archive was generated by hypermail 2.1.8 : Wed May 27 2009 - 17:55:22 CEST