blob: 073432bd19805fe2de84c9fd7cabce3a29403ccb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ab,v 1.1 2001/01/31 19:10:12 tron Exp $
--- mreadline.c.orig Tue Jan 23 11:49:05 2001
+++ mreadline.c Wed Jan 24 22:01:31 2001
@@ -359,7 +359,7 @@
break;
}
}
- sprintf (s, "%s %s/", message_cmd,
+ snprintf (s, sizeof(s), "%s %s/", message_cmd,
tab_array[tab_pointer]);
clen = cpos = strlen (s);
R_undraw();
|