Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/am-utils/libamu Fix printf format/argument mismatch.



details:   https://anonhg.NetBSD.org/src/rev/287e8085706c
branches:  trunk
changeset: 580451:287e8085706c
user:      kleink <kleink%NetBSD.org@localhost>
date:      Sun Apr 24 13:34:18 2005 +0000

description:
Fix printf format/argument mismatch.
XXX The surrounding conditional is bogus.

diffstat:

 dist/am-utils/libamu/util.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e3715169058e -r 287e8085706c dist/am-utils/libamu/util.c
--- a/dist/am-utils/libamu/util.c       Sun Apr 24 13:31:01 2005 +0000
+++ b/dist/am-utils/libamu/util.c       Sun Apr 24 13:34:18 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.c,v 1.1.1.8 2005/04/23 18:13:29 christos Exp $    */
+/*     $NetBSD: util.c,v 1.2 2005/04/24 13:34:18 kleink Exp $  */
 
 /*
  * Copyright (c) 1997-2005 Erez Zadok
@@ -96,7 +96,7 @@
 xstrlcpy(char *dst, const char *src, size_t len)
 {
   if (len < 0) {
-    plog(XLOG_ERROR, "xstrlcpy: illegal len %d", len);
+    plog(XLOG_ERROR, "xstrlcpy: illegal len %lu", (unsigned long)len);
     return;
   }
   if (len == 0)



Home | Main Index | Thread Index | Old Index