freebsd-ports/x11/fbpanel/files/patch-plugins__deskno__deskno.c
Beech Rintoul 4c8a065e7f Update to version 6.1
Numerous changes since last FreeBSD port version.
See CHANGELOG from distfile for details.

PR:		152338
Submitted by:	Charlie Kester corky1951@comcast.net (maintainer)
Approved by:	itetcu
2010-11-22 11:35:55 +00:00

11 lines
409 B
C

--- ./plugins/deskno/deskno.c.orig 2010-03-02 05:26:40.000000000 -0800
+++ ./plugins/deskno/deskno.c 2010-11-17 11:06:07.000000000 -0800
@@ -57,7 +57,7 @@
ENTER;
dc->deskno = get_net_current_desktop();
- sprintf(buffer, "<b>%d</b>", dc->deskno + 1);
+ snprintf(buffer, sizeof(buffer), "<b>%d</b>", dc->deskno + 1);
gtk_label_set_markup(GTK_LABEL(dc->namew), buffer);
RET(TRUE);
}