Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/texinfo/makeinfo Fix operator precedence to allocat...
details: https://anonhg.NetBSD.org/src/rev/fd008006a9b1
branches: trunk
changeset: 338715:fd008006a9b1
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Jun 05 16:44:56 2015 +0000
description:
Fix operator precedence to allocate enough memory.
diffstat:
gnu/dist/texinfo/makeinfo/files.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r 16ad487fd1d3 -r fd008006a9b1 gnu/dist/texinfo/makeinfo/files.c
--- a/gnu/dist/texinfo/makeinfo/files.c Fri Jun 05 16:16:18 2015 +0000
+++ b/gnu/dist/texinfo/makeinfo/files.c Fri Jun 05 16:44:56 2015 +0000
@@ -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 @@
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)
Home |
Main Index |
Thread Index |
Old Index