Source-Changes-HG archive

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

[src/trunk]: src/dist/am-utils/amd mapc_showtypes() takes two arguments.



details:   https://anonhg.NetBSD.org/src/rev/8829d4c64bba
branches:  trunk
changeset: 584490:8829d4c64bba
user:      rpaulo <rpaulo%NetBSD.org@localhost>
date:      Tue Sep 20 18:29:52 2005 +0000

description:
mapc_showtypes() takes two arguments.
Fix a typo in the merge: s/sprintf/snprintf/.

diffstat:

 dist/am-utils/amd/get_args.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 567588fb74aa -r 8829d4c64bba dist/am-utils/amd/get_args.c
--- a/dist/am-utils/amd/get_args.c      Tue Sep 20 18:07:04 2005 +0000
+++ b/dist/am-utils/amd/get_args.c      Tue Sep 20 18:29:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: get_args.c,v 1.6 2005/09/20 17:57:45 rpaulo Exp $      */
+/*     $NetBSD: get_args.c,v 1.7 2005/09/20 18:29:52 rpaulo Exp $      */
 
 /*
  * Copyright (c) 1997-2005 Erez Zadok
@@ -112,7 +112,7 @@
   strlcat(vers, tmpbuf, len);
 
   strlcat(vers, "Map support for: ", len);
-  mapc_showtypes(tmpbuf);
+  mapc_showtypes(tmpbuf, sizeof(tmpbuf));
   strlcat(vers, tmpbuf, len);
   strlcat(vers, ".\nAMFS: ", len);
   ops_showamfstypes(tmpbuf);
@@ -328,7 +328,7 @@
     fp = fopen(amu_conf_file, "r");
     if (!fp) {
       char buf[128];
-      sprintf(buf, sizeof(buf), "Amd configuration file (%s)", amu_conf_file);
+      snprintf(buf, sizeof(buf), "Amd configuration file (%s)", amu_conf_file);
       perror(buf);
       exit(1);
     }



Home | Main Index | Thread Index | Old Index