Module Name:    src
Committed By:   joerg
Date:           Fri Jun  5 16:44:56 UTC 2015

Modified Files:
        src/gnu/dist/texinfo/makeinfo: files.c

Log Message:
Fix operator precedence to allocate enough memory.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/gnu/dist/texinfo/makeinfo/files.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/gnu/dist/texinfo/makeinfo/files.c
diff -u src/gnu/dist/texinfo/makeinfo/files.c:1.9 src/gnu/dist/texinfo/makeinfo/files.c:1.10
--- src/gnu/dist/texinfo/makeinfo/files.c:1.9	Tue Sep  2 08:41:51 2008
+++ src/gnu/dist/texinfo/makeinfo/files.c	Fri Jun  5 16:44:56 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: files.c,v 1.9 2008/09/02 08:41:51 christos Exp $	*/
+/*	$NetBSD: files.c,v 1.10 2015/06/05 16:44:56 joerg Exp $	*/
 
 /* files.c -- file-related functions for makeinfo.
    Id: files.c,v 1.5 2004/07/27 00:06:31 karl Exp
@@ -458,8 +458,7 @@ full_pathname (char *filename)
           temp_home = (char *) getenv ("HOME");
           result = xmalloc (strlen (&filename[1])
                                     + 1
-                                    + temp_home ? strlen (temp_home)
-                                    : 0);
+                                    + (temp_home ? strlen (temp_home) : 0));
           *result = 0;
 
           if (temp_home)

Reply via email to