summaryrefslogtreecommitdiffstats
path: root/misc-utils
diff options
context:
space:
mode:
authorKarel Zak2019-02-18 13:10:58 +0100
committerKarel Zak2019-02-18 13:10:58 +0100
commitd135e1a1e355494d485241a782c02f823906c9e8 (patch)
tree03508267c00917691e301d39dd02c0f8e8fd0686 /misc-utils
parentsfdisk: Avoid out of boundary read with readline (diff)
downloadkernel-qcow2-util-linux-d135e1a1e355494d485241a782c02f823906c9e8.tar.gz
kernel-qcow2-util-linux-d135e1a1e355494d485241a782c02f823906c9e8.tar.xz
kernel-qcow2-util-linux-d135e1a1e355494d485241a782c02f823906c9e8.zip
cal: fix Sexit and Senter
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils')
-rw-r--r--misc-utils/cal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/cal.c b/misc-utils/cal.c
index bd643f3b4..bbb22505e 100644
--- a/misc-utils/cal.c
+++ b/misc-utils/cal.c
@@ -561,7 +561,7 @@ int main(int argc, char **argv)
;
} else {
/* disable */
- Senter = Sexit = '\0';
+ Senter = ""; Sexit = "";
ctl.req.day = 0;
ctl.weektype &= ~WEEK_NUM_MASK;
}