projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In-sourced copyip() and could make the code simpler.
[mmh]
/
uip
/
mhbuild.c
diff --git
a/uip/mhbuild.c
b/uip/mhbuild.c
index
3432ccc
..
3ed31f9
100644
(file)
--- a/
uip/mhbuild.c
+++ b/
uip/mhbuild.c
@@
-1058,8
+1058,14
@@
use_forw:
struct msgs *mp;
if (ci->ci_magic) {
struct msgs *mp;
if (ci->ci_magic) {
+ int i;
+
ap = brkstring(ci->ci_magic, " ", "\n");
ap = brkstring(ci->ci_magic, " ", "\n");
- copyip(ap, arguments, MAXARGS);
+ for (i=0; ap[i] && i<MAXARGS-1; i++) {
+ arguments[i] = ap[i];
+ }
+ arguments[i] = NULL;
+
} else {
arguments[0] = seq_cur;
arguments[1] = NULL;
} else {
arguments[0] = seq_cur;
arguments[1] = NULL;