blob: 78164436b9ebea97b9d141d9f0337a22a8bb8323 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ah,v 1.1 2004/02/28 18:36:38 snj Exp $
--- init.c.orig 2004-02-28 10:13:29.000000000 -0800
+++ init.c 2004-02-28 10:14:17.000000000 -0800
@@ -438,7 +438,7 @@ static void HandleDisplayErrors(displayN
WarningMessage("Your X Window system display variable is not set.");
else
{
- sprintf(string, "Cannot connect to display called <%s>.", displayName);
+ snprintf(string, sizeof(string), "Cannot connect to display called <%s>.", displayName);
WarningMessage(string);
}
}
|