aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-03-01 23:15:38 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-03-12 20:36:22 +0100
commit2c9499bf272e06a62902711c6c20621ef3f80e64 (patch)
tree6c71560531acf606557a586fa3cdf712e55b2960 /src/utils.c
parent7072c9c88a5d54b3f22256e6cf0015e1900374da (diff)
downloadcalcurse-2c9499bf272e06a62902711c6c20621ef3f80e64.tar.gz
calcurse-2c9499bf272e06a62902711c6c20621ef3f80e64.zip
Use strcmp() instead of strncmp()
strncmp() isn't intended to be a secure strcmp() replacement, it is designed to be used if you want to compare the first n characters of two strings. Since we always compare character pointers with string literals, switch to using strcmp() everywhere. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index e477014..d756d62 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -418,7 +418,7 @@ item_in_popup (char *saved_a_start, char *saved_a_end, char *msg,
pad = newpad (padl, padw);
popup_win = popup (winl, winw, 1, 2, pop_title, NULL, 1);
- if (strncmp (pop_title, _("Appointment"), 11) == 0)
+ if (strcmp (pop_title, _("Appointment")) == 0)
{
mvwprintw (popup_win, margin_top, margin_left, "- %s -> %s",
saved_a_start, saved_a_end);