From a113290b29b12bc66ed2d726b7d2ff971b50b8f2 Mon Sep 17 00:00:00 2001 From: ajs Date: Sat, 20 Nov 2004 02:06:59 +0000 Subject: 2004-11-19 Andrew J. Schorr * global: Replace strerror with safe_strerror. And vtysh/vtysh.c needs to include "log.h" to pick up the declaration. --- lib/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/command.c') diff --git a/lib/command.c b/lib/command.c index fc115d95..6c02c96e 100644 --- a/lib/command.c +++ b/lib/command.c @@ -2562,7 +2562,7 @@ DEFUN (config_write_file, if (chmod (config_file, CONFIGFILE_MASK) != 0) { vty_out (vty, "Can't chmod configuration file %s: %s (%d).%s", - config_file, strerror(errno), errno, VTY_NEWLINE); + config_file, safe_strerror(errno), errno, VTY_NEWLINE); return CMD_WARNING; } -- cgit v1.2.3