openbsd-ports/x11/pwm/patches/patch-clientwin_c
naddy 73912c9d4a Update to release 20030528.
From new maintainer Gregory Steuck <greg-openbsd-pwm@nest.cx>.
2003-06-05 23:01:51 +00:00

22 lines
679 B
Plaintext

$OpenBSD: patch-clientwin_c,v 1.1 2003/06/05 23:01:51 naddy Exp $
--- clientwin.c.orig Wed May 28 14:55:08 2003
+++ clientwin.c Sun Jun 1 13:53:26 2003
@@ -864,7 +864,7 @@ void clientwin_make_label(WClientWin *cw
char tmp[16];
if(cwin->label_inst!=0)
- sprintf(tmp, CLIENTNUM_TMPL, cwin->label_inst);
+ snprintf(tmp, sizeof(tmp), CLIENTNUM_TMPL, cwin->label_inst);
else
*tmp='\0';
@@ -881,7 +881,7 @@ char *clientwin_full_label(WClientWin *c
char tmp[16];
if(cwin->label_inst!=0){
- sprintf(tmp, CLIENTNUM_TMPL, cwin->label_inst);
+ snprintf(tmp, sizeof(tmp), CLIENTNUM_TMPL, cwin->label_inst);
return scat(str, tmp);
}else{
return scopy(str);