summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xwake.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xwake.c b/xwake.c
index fc0c8b7..5ecef8f 100644
--- a/xwake.c
+++ b/xwake.c
@@ -43,8 +43,8 @@ gettriggertimes(int *startarr, int *endarr)
{
char smodify[6];
char emodify[6];
- strncpy(smodify, start, 5);
- strncpy(emodify, end, 5);
+ strncpy(smodify, start, 6);
+ strncpy(emodify, end, 6);
startarr[0] = atoi(strtok(smodify, ":"));
startarr[1] = atoi(strtok(NULL, ":"));