projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This is mmh-0.3
[mmh]
/
sbr
/
seq_setprev.c
diff --git
a/sbr/seq_setprev.c
b/sbr/seq_setprev.c
index
c66c132
..
f4304cc
100644
(file)
--- a/
sbr/seq_setprev.c
+++ b/
sbr/seq_setprev.c
@@
-7,6
+7,7
@@
*/
#include <h/mh.h>
*/
#include <h/mh.h>
+#include <h/utils.h>
/*
** Add all the messages currently SELECTED to
/*
** Add all the messages currently SELECTED to
@@
-26,9
+27,9
@@
seq_setprev(struct msgs *mp)
** and split them.
*/
if ((cp = context_find(psequence))) {
** and split them.
*/
if ((cp = context_find(psequence))) {
- dp = getcpy(cp);
+ dp = mh_xstrdup(cp);
if (!(ap = brkstring(dp, " ", "\n")) || !*ap) {
if (!(ap = brkstring(dp, " ", "\n")) || !*ap) {
- free(dp);
+ mh_free0(&dp);
return;
}
} else {
return;
}
} else {
@@
-39,5
+40,5
@@
seq_setprev(struct msgs *mp)
for (; *ap; ap++)
seq_addsel(mp, *ap, -1, 1);
for (; *ap; ap++)
seq_addsel(mp, *ap, -1, 1);
- free(dp);
+ mh_free0(&dp);
}
}