projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Completely reworked the path convertion functions
[mmh]
/
sbr
/
m_convert.c
diff --git
a/sbr/m_convert.c
b/sbr/m_convert.c
index
89da537
..
a67305b
100644
(file)
--- a/
sbr/m_convert.c
+++ b/
sbr/m_convert.c
@@
-335,11
+335,12
@@
attr(struct msgs *mp, char *cp)
/* hack for "cur-name", "cur-n", etc. */
if (!strcmp(cp, "cur"))
return 0;
/* 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 */
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);
}
inverted = 1;
cp += strlen(dp);
}