summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/os_sgline.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/os_sgline.c b/src/core/os_sgline.c
index 7185b885f..bd3181b39 100644
--- a/src/core/os_sgline.c
+++ b/src/core/os_sgline.c
@@ -115,7 +115,9 @@ int do_sgline(User * u)
}
if (mask && (reason = strtok(NULL, ""))) {
- /* Clean up the last character of the mask if it is a space. */
+ /* Clean up the last character of the mask if it is a space
+ * See bug #761
+ */
size_t masklen = strlen(mask);
if (mask[masklen - 1] == ' ')
mask[masklen - 1] = '\0';