summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/up-wakeups.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/up-wakeups.c b/src/up-wakeups.c
index a0719e1..38b8870 100644
--- a/src/up-wakeups.c
+++ b/src/up-wakeups.c
@@ -283,8 +283,8 @@ up_strsplit_complete_set (const gchar *string, const gchar *delimiters, guint ma
/* find length of string */
len = &string[i] - start;
- if (len > 100)
- len = 100;
+ if (len > 99)
+ len = 99;
strncpy (temp_data, start, len);
temp_data[len] = '\0';