projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wibble
[apps/madmutt.git]
/
lib
/
list.c
diff --git
a/lib/list.c
b/lib/list.c
index
23dcf26
..
8edcec2
100644
(file)
--- a/
lib/list.c
+++ b/
lib/list.c
@@
-11,10
+11,10
@@
#include <string.h>
#include <lib-lib/mem.h>
#include <string.h>
#include <lib-lib/mem.h>
+#include <lib-lib/str.h>
#include "list.h"
#include "list.h"
-#include "str.h"
list2_t* list_new (void) {
return p_new(list2_t, 1);
list2_t* list_new (void) {
return p_new(list2_t, 1);
@@
-118,9
+118,9
@@
list2_t* list_from_str (const char* str, const char* delim) {
if (!str || !*str || !delim || !*delim)
return (NULL);
if (!str || !*str || !delim || !*delim)
return (NULL);
- tmp =
str_dup
(str);
+ tmp =
m_strdup
(str);
for (p = strtok (tmp, delim); p; p = strtok (NULL, delim)) {
for (p = strtok (tmp, delim); p; p = strtok (NULL, delim)) {
- list_push_back (&ret,
str_dup
(p));
+ list_push_back (&ret,
m_strdup
(p));
}
p_delete(&tmp);
return (ret);
}
p_delete(&tmp);
return (ret);