summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binstatus.c2
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]));
}
}