From ec0f21f465d055c10642e84ec58626c5ea8170c7 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Thu, 7 Dec 2006 11:12:21 +0000 Subject: [PATCH] (parse_signal): Use xstricmp instead of strcasecmp. (Fsignal_process): Don't use strncasecmp. --- src/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/process.c b/src/process.c index 4abf1de79a2..0ea27ded7df 100644 --- a/src/process.c +++ b/src/process.c @@ -6148,7 +6148,7 @@ SIGCODE may be an integer, or a symbol whose name is a signal name. */) got_it: #define parse_signal(NAME, VALUE) \ - else if (!strcasecmp (name, NAME)) \ + else if (!xstricmp (name, NAME)) \ XSETINT (sigcode, VALUE) if (INTEGERP (sigcode)) @@ -6160,7 +6160,7 @@ SIGCODE may be an integer, or a symbol whose name is a signal name. */) CHECK_SYMBOL (sigcode); name = SDATA (SYMBOL_NAME (sigcode)); - if (!strncasecmp(name, "sig", 3)) + if (!strncmp(name, "SIG", 3) || !strncmp(name, "sig", 3)) name += 3; if (0) -- 2.39.2