73912c9d4a
From new maintainer Gregory Steuck <greg-openbsd-pwm@nest.cx>.
22 lines
633 B
Plaintext
22 lines
633 B
Plaintext
$OpenBSD: patch-moveres_c,v 1.1 2003/06/05 23:01:51 naddy Exp $
|
|
--- moveres.c.orig Sun Jun 1 13:54:30 2003
|
|
+++ moveres.c Sun Jun 1 13:55:26 2003
|
|
@@ -41,7 +41,7 @@ static XSizeHints dummy_size_hints={
|
|
|
|
static void show_pos(int x, int y)
|
|
{
|
|
- sprintf(moveres_tmpstr, "%+d %+d", x, y);
|
|
+ snprintf(moveres_tmpstr, sizeof(moveres_tmpstr), "%+d %+d", x, y);
|
|
|
|
draw_moveres(moveres_tmpstr);
|
|
}
|
|
@@ -54,7 +54,7 @@ static void show_size(int w, int h, XSiz
|
|
h/=hints->height_inc;
|
|
}
|
|
|
|
- sprintf(moveres_tmpstr, "%dx%d", w, h);
|
|
+ snprintf(moveres_tmpstr, sizeof(moveres_tmpstr), "%dx%d", w, h);
|
|
|
|
draw_moveres(moveres_tmpstr);
|
|
}
|