]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Cast xrealloc result, to make it compile in C++ mode.
authorBruno Haible <bruno@clisp.org>
Sun, 24 Aug 2003 18:17:09 +0000 (18:17 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:54 +0000 (12:10 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/msgfilter.c

index 3aeedc2c7d339f4e61ec2ace04556a97e09bb312..553a6254ae684e61744a3dec2bfe49e538219b7a 100644 (file)
@@ -1,3 +1,7 @@
+2003-08-24  Bruno Haible  <bruno@clisp.org>
+
+       * msgfilter.c (process_message): Cast xrealloc() result.
+
 2003-08-24  Bruno Haible  <bruno@clisp.org>
 
        * msgfilter.c: On Windows, include <io.h> instead of <unistd.h>.
index 7ed92291086eea5f7dec370d389ac4ec97fb2705..0cc85b1a474e2b067caa53b4f840c632b00d876d 100644 (file)
@@ -720,7 +720,7 @@ process_message (message_ty *mp)
       size_t length;
 
       process_string (p, strlen (p), &result, &length);
-      result = xrealloc (result, length + 1);
+      result = (char *) xrealloc (result, length + 1);
       result[length] = '\0';
       substrings[k] = result;
       total_len += length + 1;