diff options
Diffstat (limited to 'x11/fbpanel/files/patch-plugins__deskno__deskno.c')
-rw-r--r-- | x11/fbpanel/files/patch-plugins__deskno__deskno.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/x11/fbpanel/files/patch-plugins__deskno__deskno.c b/x11/fbpanel/files/patch-plugins__deskno__deskno.c new file mode 100644 index 000000000000..9fd48d09fb1b --- /dev/null +++ b/x11/fbpanel/files/patch-plugins__deskno__deskno.c @@ -0,0 +1,11 @@ +--- ./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); + } |