Renamed ssequal() to isprefix(), because that's what it checks.
[mmh] / sbr / m_convert.c
index 89da537..a67305b 100644 (file)
@@ -335,11 +335,12 @@ attr(struct msgs *mp, char *cp)
        /* hack for "cur-name", "cur-n", etc. */
        if (!strcmp(cp, "cur"))
                return 0;
-       if (ssequal("cur:", cp))  /* this code need to be rewritten... */
+       if (isprefix("cur:", cp))  /* this code need to be rewritten... */
                return 0;
 
        /* Check for sequence negation */
-       if ((dp = context_find(nsequence)) && *dp != '\0' && ssequal(dp, cp)) {
+       if ((dp = context_find(nsequence)) && *dp != '\0' &&
+                       isprefix(dp, cp)) {
                inverted = 1;
                cp += strlen(dp);
        }