summaryrefslogtreecommitdiffstats
path: root/contrib/texinfo/info/nodemenu.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-06-18 12:57:43 +0000
committerru <ru@FreeBSD.org>2003-06-18 12:57:43 +0000
commitb0465e4534c37946b9f157053a91a25b88ee6c6f (patch)
tree92a83a9292c9ea3b8a8e235e830bf6581591579e /contrib/texinfo/info/nodemenu.c
parent1e2af4f2c82dd1396d247a2b5fe032b13c51189a (diff)
downloadFreeBSD-src-b0465e4534c37946b9f157053a91a25b88ee6c6f.zip
FreeBSD-src-b0465e4534c37946b9f157053a91a25b88ee6c6f.tar.gz
Import of stripped down GNU texinfo 4.6
Diffstat (limited to 'contrib/texinfo/info/nodemenu.c')
-rw-r--r--contrib/texinfo/info/nodemenu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/texinfo/info/nodemenu.c b/contrib/texinfo/info/nodemenu.c
index dad5137..4de2cfa 100644
--- a/contrib/texinfo/info/nodemenu.c
+++ b/contrib/texinfo/info/nodemenu.c
@@ -1,7 +1,7 @@
/* nodemenu.c -- produce a menu of all visited nodes.
- $Id: nodemenu.c,v 1.1 2002/08/25 23:38:38 karl Exp $
+ $Id: nodemenu.c,v 1.3 2003/05/13 16:37:54 karl Exp $
- Copyright (C) 1993, 1997, 1998, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1997, 1998, 2002, 2003 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
@@ -22,7 +22,7 @@
#include "info.h"
/* Return a line describing the format of a node information line. */
-static char *
+static const char *
nodemenu_format_info ()
{
return (_("\n\
@@ -101,7 +101,7 @@ format_node_info (node)
if (node->filename && *(node->filename))
{
len = pad_to (51, line_buffer);
- sprintf (line_buffer + len, node->filename);
+ strcpy (line_buffer + len, node->filename);
}
return xstrdup (line_buffer);
OpenPOWER on IntegriCloud