Module Name: src
Committed By: joerg
Date: Tue May 24 13:27:16 UTC 2011
Modified Files:
src/usr.sbin/rpc.yppasswdd: rpc.yppasswdd.c
Log Message:
Properly use format strings
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.sbin/rpc.yppasswdd/rpc.yppasswdd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/rpc.yppasswdd/rpc.yppasswdd.c
diff -u src/usr.sbin/rpc.yppasswdd/rpc.yppasswdd.c:1.13 src/usr.sbin/rpc.yppasswdd/rpc.yppasswdd.c:1.14
--- src/usr.sbin/rpc.yppasswdd/rpc.yppasswdd.c:1.13 Tue Oct 20 00:51:14 2009
+++ src/usr.sbin/rpc.yppasswdd/rpc.yppasswdd.c Tue May 24 13:27:16 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: rpc.yppasswdd.c,v 1.13 2009/10/20 00:51:14 snj Exp $ */
+/* $NetBSD: rpc.yppasswdd.c,v 1.14 2011/05/24 13:27:16 joerg Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <[email protected]>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: rpc.yppasswdd.c,v 1.13 2009/10/20 00:51:14 snj Exp $");
+__RCSID("$NetBSD: rpc.yppasswdd.c,v 1.14 2011/05/24 13:27:16 joerg Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -93,7 +93,7 @@
arglen = strlen(argv[i]);
if ((len + arglen) > (int)(sizeof(make_arg) - 2))
- errx(EXIT_FAILURE, strerror(E2BIG));
+ errx(EXIT_FAILURE, "%s", strerror(E2BIG));
make_arg[len++] = ' ';
(void)strcpy(&make_arg[len], argv[i]);
len += arglen;