summaryrefslogtreecommitdiff
path: root/comsat/action.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-08-20 14:35:34 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-08-20 14:35:34 +0000
commitf74c4d960cc8c68d59187bf24d87f3ff3c09dbc9 (patch)
tree6cdfcf12600e65fa15314988dcdf750e640b0e86 /comsat/action.c
parent12c9b1de8d06d7b38ee536da2d298652972ac165 (diff)
downloadmailutils-f74c4d960cc8c68d59187bf24d87f3ff3c09dbc9.tar.gz
mailutils-f74c4d960cc8c68d59187bf24d87f3ff3c09dbc9.tar.bz2
(expand_escape): Use argcv_unescape_char() instead of backslash().
Diffstat (limited to 'comsat/action.c')
-rw-r--r--comsat/action.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/comsat/action.c b/comsat/action.c
index b1897abe9..a624a38c7 100644
--- a/comsat/action.c
+++ b/comsat/action.c
@@ -79,22 +79,6 @@ act_getline (FILE *fp, char **sptr, size_t *size)
return used;
}
-/* Convert second character of a backslash sequence to its ASCII
- value: */
-static int
-backslash(int c)
-{
- static char transtab[] = "a\ab\bf\fn\nr\rt\t";
- char *p;
-
- for (p = transtab; *p; p += 2)
- {
- if (*p == c)
- return p[1];
- }
- return c;
-}
-
static int
expand_escape (char **pp, message_t msg, struct obstack *stk)
{
@@ -213,7 +197,7 @@ expand_line (const char *str, message_t msg)
p++;
if (*p)
{
- c = backslash (*p);
+ c = argcv_unescape_char (*p);
obstack_1grow (&stk, c);
}
break;

Return to:

Send suggestions and report system problems to the System administrator.