aboutsummaryrefslogtreecommitdiff
path: root/lib/update.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/update.c')
-rw-r--r--lib/update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/update.c b/lib/update.c
index dfed858..b41f2a7 100644
--- a/lib/update.c
+++ b/lib/update.c
@@ -73,7 +73,7 @@ tgeb_update(struct tm * tm)
if (!(get = calloc(strlen(TGebGET), sizeof(char))))
err(1, "malloc");
- sprintf(get, TGebGET, tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday);
+ snprintf(get, strlen(TGebGET), TGebGET, tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday);
if ((send(sockfd, get, strlen(get), 0)) == -1)
err(1, "send");
free(get);