9675fc3c39
Port by Hitoshi Suzuki <sigh@kuzirabekon.econ.nagasaki-u.ac.jp>, with a few flavor tricks by me. Domo arigato, Suzuki san !
22 lines
806 B
Plaintext
22 lines
806 B
Plaintext
$OpenBSD: patch-lib_ConvCtrl_c,v 1.1.1.1 2000/04/26 00:43:12 espie Exp $
|
|
--- lib/ConvCtrl.c.orig Thu May 27 01:55:23 1999
|
|
+++ lib/ConvCtrl.c Wed Apr 26 02:18:47 2000
|
|
@@ -1246,7 +1246,7 @@ String msg;
|
|
params[0] = XtClass(w)->core_class.class_name;
|
|
num_params = 1;
|
|
|
|
- (void)sprintf(buf, "%%s: %s", msg);
|
|
+ (void)snprintf(buf, sizeof(buf), "%%s: %s", msg);
|
|
|
|
XtAppErrorMsg(XtWidgetToApplicationContext(w),
|
|
name, type, "WidgetError", buf, params, &num_params);
|
|
@@ -1266,7 +1266,7 @@ String msg;
|
|
params[0] = XtClass(w)->core_class.class_name;
|
|
num_params = 1;
|
|
|
|
- (void)sprintf(buf, "%%s: %s", msg);
|
|
+ (void)snprintf(buf, sizeof(buf), "%%s: %s", msg);
|
|
|
|
XtAppWarningMsg(XtWidgetToApplicationContext(w),
|
|
name, type, "WidgetError", buf, params, &num_params);
|