diff options
-rw-r--r-- | app/fvwm/libs/Module.c | 2 | ||||
-rw-r--r-- | app/fvwm/modules/FvwmAuto/FvwmAuto.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/fvwm/libs/Module.c b/app/fvwm/libs/Module.c index e0a210112..aefe05551 100644 --- a/app/fvwm/libs/Module.c +++ b/app/fvwm/libs/Module.c @@ -102,7 +102,7 @@ void SetMessageMask(int *fd, unsigned long mask) { char set_mask_mesg[50]; - sprintf(set_mask_mesg,"SET_MASK %lu\n",mask); + snprintf(set_mask_mesg, sizeof(set_mask_mesg), "SET_MASK %lu\n",mask); SendText(fd,set_mask_mesg,0); } diff --git a/app/fvwm/modules/FvwmAuto/FvwmAuto.c b/app/fvwm/modules/FvwmAuto/FvwmAuto.c index b26dfcb69..8548b07ec 100644 --- a/app/fvwm/modules/FvwmAuto/FvwmAuto.c +++ b/app/fvwm/modules/FvwmAuto/FvwmAuto.c @@ -116,7 +116,7 @@ int main(int argc, char **argv) #endif fd_width = GetFdWidth(); - sprintf(mask_mesg,"SET_MASK %lu\n",(unsigned long)(M_FOCUS_CHANGE)); + snprintf(mask_mesg, sizeof(mask_mesg), "SET_MASK %lu\n",(unsigned long)(M_FOCUS_CHANGE)); SendInfo(fd,mask_mesg,0); while(1) |