Module Name:    src
Committed By:   christos
Date:           Tue Mar 25 19:43:49 UTC 2014

Modified Files:
        src/sys/arch/next68k/stand/boot: boot.c

Log Message:
kill sprintf


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/next68k/stand/boot/boot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/next68k/stand/boot/boot.c
diff -u src/sys/arch/next68k/stand/boot/boot.c:1.10 src/sys/arch/next68k/stand/boot/boot.c:1.11
--- src/sys/arch/next68k/stand/boot/boot.c:1.10	Sun Dec 11 07:18:29 2005
+++ src/sys/arch/next68k/stand/boot/boot.c	Tue Mar 25 15:43:48 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: boot.c,v 1.10 2005/12/11 12:18:29 christos Exp $	*/
+/*	$NetBSD: boot.c,v 1.11 2014/03/25 19:43:48 christos Exp $	*/
 /*
  * Copyright (c) 1994 Rolf Grossmann
  * All rights reserved.
@@ -143,10 +143,10 @@ main(char *boot_arg)
 		strcpy (p, devsw[dev].dv_name);
 		MON(char *, MG_boot_dev) = p;
 		p += strlen (p) + 1;
-		sprintf (p, "(%d,%d,%d)", count, lun, part);
+		snprintf (p, 1024, "(%d,%d,%d)", count, lun, part); /* XXX */
 		MON(char *, MG_boot_info) = p;
 		p += strlen (p) + 1;
-		sprintf (p, "%s", file);
+		snprintf (p, 1024, "%s", file); /* XXX */
 		MON(char *, MG_boot_file) = p;
 #ifdef PROCESS_ARGS
 		p += strlen (p) + 1;

Reply via email to