diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-10-24 13:34:55 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-10-24 13:34:55 +0000 |
commit | d9e3a91c1a12b4bdfc743f260e6b1d7b5f467283 (patch) | |
tree | 83bb0cdaeece932075697b372889a9dd07ffbaa6 /app/fvwm/libs/Module.c | |
parent | 445e21ebb5f33420b5b719690604603d86ac7443 (diff) |
sprintf() -> snprintf()
Diffstat (limited to 'app/fvwm/libs/Module.c')
-rw-r--r-- | app/fvwm/libs/Module.c | 2 |
1 files changed, 1 insertions, 1 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); } |