projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix logic bug in getthreadid
[mmh]
/
uip
/
comp.c
diff --git
a/uip/comp.c
b/uip/comp.c
index
159d7e7
..
75bbf86
100644
(file)
--- a/
uip/comp.c
+++ b/
uip/comp.c
@@
-31,6
+31,7
@@
static struct swit switches[] = {
{ NULL, 0 }
};
{ NULL, 0 }
};
+char *version=VERSION;
int
main(int argc, char **argv)
int
main(int argc, char **argv)
@@
-100,7
+101,7
@@
main(int argc, char **argv)
if (folder) {
adios(EX_USAGE, NULL, "only one folder at a time!");
} else {
if (folder) {
adios(EX_USAGE, NULL, "only one folder at a time!");
} else {
- folder = getcpy(expandfol(cp));
+ folder = mh_xstrdup(expandfol(cp));
}
} else {
if (msg) {
}
} else {
if (msg) {
@@
-111,7
+112,7
@@
main(int argc, char **argv)
}
}
}
}
- cwd = getcpy(pwd());
+ cwd = mh_xstrdup(pwd());
if (form && (folder || msg)) {
adios(EX_USAGE, NULL, "can't mix forms and folders/msgs");
if (form && (folder || msg)) {
adios(EX_USAGE, NULL, "can't mix forms and folders/msgs");
@@
-151,7
+152,7
@@
main(int argc, char **argv)
if (mp->numsel > 1) {
adios(EX_USAGE, NULL, "only one message at a time!");
}
if (mp->numsel > 1) {
adios(EX_USAGE, NULL, "only one message at a time!");
}
- if ((in = open(form = getcpy(m_name(mp->lowsel)),
+ if ((in = open(form = mh_xstrdup(m_name(mp->lowsel)),
O_RDONLY)) == NOTOK) {
adios(EX_IOERR, form, "unable to open message");
}
O_RDONLY)) == NOTOK) {
adios(EX_IOERR, form, "unable to open message");
}