From 81e44312b4976d5516f129f36a67fe381bcb6883 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sun, 25 Dec 2011 20:23:53 +0000 Subject: Use strdup explicitly --- ColorsPanel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ColorsPanel.c') 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; -- cgit v1.2.3