openbsd-ports/x11/wmfishtime/patches/patch-fishmon_c

13 lines
490 B
Plaintext
Raw Normal View History

2002-12-25 06:03:19 -05:00
$OpenBSD: patch-fishmon_c,v 1.2 2002/12/25 11:03:19 wilfried Exp $
--- fishmon.c.orig Sat May 26 22:53:09 2001
2002-12-25 06:03:19 -05:00
+++ fishmon.c Wed Dec 25 11:58:52 2002
@@ -562,7 +562,7 @@ static void prepare_backbuffer(int solid
curr_time = time(NULL);
data = localtime(&curr_time);
- sprintf(buffer, "%s %02d-%s", weekday[data->tm_wday],
+ snprintf(buffer, sizeof(buffer), "%s %02d-%s", weekday[data->tm_wday],
data->tm_mday, month[data->tm_mon]);
draw_string(2, 47, buffer);