summaryrefslogtreecommitdiffstats
path: root/hook.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-11-10 22:14:00 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-11-10 22:14:00 +0000
commita3f726e35f1e7d918061074a85ebe7a2c7c300a5 (patch)
treed9ab2a281be2a13fbb1ec8682d4e5c7ff0502cde /hook.c
parent912c6b0df82fe3a2745d68131db9300222226a73 (diff)
Introduce or rewrite mutt_{str*cmp,strlen} and use them all over the
place. If there are still segmentation faults due to missing NONULLs over, they are gone now.
Diffstat (limited to 'hook.c')
-rw-r--r--hook.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hook.c b/hook.c
index 4df4da96..a0223451 100644
--- a/hook.c
+++ b/hook.c
@@ -114,14 +114,14 @@ int mutt_parse_hook (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err)
{
if (ptr->type == data &&
ptr->rx.not == not &&
- !strcmp (pattern.data, ptr->rx.pattern))
+ !mutt_strcmp (pattern.data, ptr->rx.pattern))
{
if (data & (M_FOLDERHOOK | M_SENDHOOK))
{
/* folder-hook and send-hook allow multiple commands with the same
pattern, so if we've already seen this pattern/command pair, just
ignore it instead of creating a duplicate */
- if (!strcmp (ptr->command, command.data))
+ if (!mutt_strcmp (ptr->command, command.data))
{
FREE (&command.data);
FREE (&pattern.data);