patch-lib_ConvCtrl_c 806 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-lib_ConvCtrl_c,v 1.1.1.1 2000/04/26 00:43:12 espie Exp $
  2. --- lib/ConvCtrl.c.orig Thu May 27 01:55:23 1999
  3. +++ lib/ConvCtrl.c Wed Apr 26 02:18:47 2000
  4. @@ -1246,7 +1246,7 @@ String msg;
  5. params[0] = XtClass(w)->core_class.class_name;
  6. num_params = 1;
  7. - (void)sprintf(buf, "%%s: %s", msg);
  8. + (void)snprintf(buf, sizeof(buf), "%%s: %s", msg);
  9. XtAppErrorMsg(XtWidgetToApplicationContext(w),
  10. name, type, "WidgetError", buf, params, &num_params);
  11. @@ -1266,7 +1266,7 @@ String msg;
  12. params[0] = XtClass(w)->core_class.class_name;
  13. num_params = 1;
  14. - (void)sprintf(buf, "%%s: %s", msg);
  15. + (void)snprintf(buf, sizeof(buf), "%%s: %s", msg);
  16. XtAppWarningMsg(XtWidgetToApplicationContext(w),
  17. name, type, "WidgetError", buf, params, &num_params);