summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2019-04-17 14:08:42 +0930
committerDaniel Jones <admin@danieljon.es>2019-04-17 14:08:42 +0930
commitd9343fb793c448fcb82270fe63a61dfa782b8af7 (patch)
treedbf6a6d04c65448d003b7ae7ed1c4264b90fdedd
parent38ddafa8d292ac500f4be741453ea75a7e4fb085 (diff)
downloadxwake-master.tar.gz
xwake-master.zip
strxcpy() copies null terminator tooHEADmaster
-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, ":"));