projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prevent double free of 'ce->cd_file' or later use of invalid data
[mmh]
/
uip
/
aliasbr.c
diff --git
a/uip/aliasbr.c
b/uip/aliasbr.c
index
8ea8c13
..
19f204f
100644
(file)
--- a/
uip/aliasbr.c
+++ b/
uip/aliasbr.c
@@
-3,6
+3,10
@@
* aliasbr.c -- new aliasing mechanism
*
* $Id$
* aliasbr.c -- new aliasing mechanism
*
* $Id$
+ *
+ * This code is Copyright (c) 2002, by the authors of nmh. See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
*/
#include <h/mh.h>
*/
#include <h/mh.h>
@@
-47,6
+51,7
@@
struct home *seek_home (char *);
#endif
#endif
+/* Do mh alias substitution on 's' and return the results. */
char *
akvalue (char *s)
{
char *
akvalue (char *s)
{
@@
-450,11
+455,12
@@
getalias (char *addrs)
if (*qp == ',')
*qp++ = 0;
for (cp = qp, qp--; qp > pp; qp--)
if (*qp == ',')
*qp++ = 0;
for (cp = qp, qp--; qp > pp; qp--)
- if (*qp != 0)
+ if (*qp != 0) {
if (isspace (*qp))
*qp = 0;
else
break;
if (isspace (*qp))
*qp = 0;
else
break;
+ }
return pp;
}
return pp;
}