summaryrefslogtreecommitdiffstats
path: root/ColorsPanel.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2011-12-25 20:23:53 +0000
committerHisham Muhammad <hisham@gobolinux.org>2011-12-25 20:23:53 +0000
commit81e44312b4976d5516f129f36a67fe381bcb6883 (patch)
tree01f7dcdce2275ab6026f0f56762500fc8fa0a54b /ColorsPanel.c
parent93233a67ea124b8127b50b45cd91c95ca022f8e7 (diff)
Use strdup explicitly
Diffstat (limited to 'ColorsPanel.c')
-rw-r--r--ColorsPanel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ColorsPanel.c b/ColorsPanel.c
index b4ee5f29..374e1df2 100644
--- a/ColorsPanel.c
+++ b/ColorsPanel.c
@@ -1,4 +1,5 @@
+#include "config.h"
#include "CRT.h"
#include "ColorsPanel.h"
@@ -88,7 +89,7 @@ ColorsPanel* ColorsPanel_new(Settings* settings, ScreenManager* scr) {
Panel_setHeader(super, "Colors");
for (int i = 0; ColorSchemes[i] != NULL; i++) {
- Panel_add(super, (Object*) CheckItem_new(String_copy(ColorSchemes[i]), NULL, false));
+ Panel_add(super, (Object*) CheckItem_new(strdup(ColorSchemes[i]), NULL, false));
}
CheckItem_set((CheckItem*)Panel_get(super, settings->colorScheme), true);
return this;

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