aboutsummaryrefslogtreecommitdiffstats
path: root/ListItem.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:30 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:30 +0200
commite2b58f0ab81b2aafeb8c29a69abad7829fa21ab3 (patch)
treec4e410dd878ceed9fc058d14bad8011b423212fe /ListItem.c
parenteaf11cc12a1aa4b050a8a1e7ea3770d3d9c81e95 (diff)
downloaddebian_htop-e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3.tar.gz
debian_htop-e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3.tar.bz2
debian_htop-e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3.zip
Imported Upstream version 1.0.1upstream/1.0.1
Diffstat (limited to 'ListItem.c')
-rw-r--r--ListItem.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/ListItem.c b/ListItem.c
index 68ca7c9..9beed0c 100644
--- a/ListItem.c
+++ b/ListItem.c
@@ -6,14 +6,17 @@ in the source distribution for its full text.
*/
#include "ListItem.h"
+
+#include "CRT.h"
#include "String.h"
-#include "Object.h"
#include "RichString.h"
-#include <string.h>
-#include "debug.h"
+#include <string.h>
+#include <assert.h>
+#include <stdlib.h>
/*{
+#include "Object.h"
typedef struct ListItem_ {
Object super;
@@ -49,7 +52,7 @@ ListItem* ListItem_new(const char* value, int key) {
Object_setClass(this, LISTITEM_CLASS);
((Object*)this)->display = ListItem_display;
((Object*)this)->delete = ListItem_delete;
- this->value = String_copy(value);
+ this->value = strdup(value);
this->key = key;
return this;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy