Module Name:    src
Committed By:   christos
Date:           Fri Mar 21 16:41:15 UTC 2014

Modified Files:
        src/sys/arch/acorn26/stand/lib: riscosdisk.c

Log Message:
kill sprintf


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/acorn26/stand/lib/riscosdisk.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/acorn26/stand/lib/riscosdisk.c
diff -u src/sys/arch/acorn26/stand/lib/riscosdisk.c:1.1 src/sys/arch/acorn26/stand/lib/riscosdisk.c:1.2
--- src/sys/arch/acorn26/stand/lib/riscosdisk.c:1.1	Sun Mar 24 10:47:27 2002
+++ src/sys/arch/acorn26/stand/lib/riscosdisk.c	Fri Mar 21 12:41:15 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: riscosdisk.c,v 1.1 2002/03/24 15:47:27 bjh21 Exp $	*/
+/*	$NetBSD: riscosdisk.c,v 1.2 2014/03/21 16:41:15 christos Exp $	*/
 
 /*-
  * Copyright (c) 2001 Ben Harris
@@ -58,10 +58,10 @@ rodisk_open(struct open_file *f, ...)
 
 	buflen = strlen(fsname) + 13;
 	buf = alloc(buflen);
-	sprintf(buf, "%s_DescribeDisc", fsname);
+	snprintf(buf, buflen, "%s_DescribeDisc", fsname);
 	if (xos_swi_number_from_string(buf, &rd->describe_disc) != NULL)
 		return ENODEV;
-	sprintf(buf, "%s_DiscOp", fsname);
+	snprintf(buf, buflen, "%s_DiscOp", fsname);
 	if (xos_swi_number_from_string(buf, &rd->disc_op) != NULL)
 		return ENODEV;
 	

Reply via email to