m4-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: another gnulib update


From: Eric Blake
Subject: Re: another gnulib update
Date: Thu, 1 Feb 2007 05:42:50 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Eric Blake <ebb9 <at> byu.net> writes:

> 
> Gnulib just enhanced <string.h> to guarantee GNU properties, obsoleting 
several 
> minor headers in the process.

And another update detected that we used raw strdup without checking for 
failure.

2007-01-31  Eric Blake  <address@hidden>

        * m4/resyntax.c (m4_regexp_syntax_encode): Detect allocation
        failure.

Index: m4/resyntax.c
===================================================================
RCS file: /sources/m4/m4/m4/resyntax.c,v
retrieving revision 1.3
diff -u -r1.3 resyntax.c
--- m4/resyntax.c       14 Nov 2006 19:40:12 -0000      1.3
+++ m4/resyntax.c       1 Feb 2007 05:41:25 -0000
@@ -1,5 +1,5 @@
 /* GNU m4 -- A simple macro processor
-   Copyright (C) 2006 Free Software Foundation, Inc.
+   Copyright (C) 2006, 2007 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -86,7 +86,7 @@
   if (!spec)
     return RE_SYNTAX_EMACS;
 
-  canonical = strdup (spec);
+  canonical = xstrdup (spec);
 
   /* Canonicalise SPEC.  */
   for (p = canonical; *p != '\0'; ++p)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]