diff options
author | daniel-Jones <daniel@danieljon.es> | 2018-09-19 16:43:55 +0930 |
---|---|---|
committer | daniel-Jones <daniel@danieljon.es> | 2018-09-19 16:43:55 +0930 |
commit | 024d14450abc9b9bdd47ae3a61f8664a5271553a (patch) | |
tree | de41ae9aad05a8f6be278dd9ac7b1690d161b021 /binstatus.c | |
parent | d91ff3491e3dab1c89977a5d94a3fe743028dd21 (diff) | |
download | binstatus-024d14450abc9b9bdd47ae3a61f8664a5271553a.tar.gz binstatus-024d14450abc9b9bdd47ae3a61f8664a5271553a.zip |
use snprintf
Diffstat (limited to 'binstatus.c')
-rw-r--r-- | binstatus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binstatus.c b/binstatus.c index 1b88afb..046e09e 100644 --- a/binstatus.c +++ b/binstatus.c @@ -49,7 +49,7 @@ formatstring(char *status, int *time) } else { - sprintf(status, "%05d %06d", dectobin(time[0]), + snprintf(status, MAXLENGTH, "%05d %06d", dectobin(time[0]), dectobin(time[1])); } } |