From 2ee50d030178cede83eb9d0005fbc19f819d30fe Mon Sep 17 00:00:00 2001 From: Graham Inggs Date: Mon, 5 Feb 2018 14:48:51 +0200 Subject: Imported Upstream version 2.1.0 --- AvailableColumnsPanel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'AvailableColumnsPanel.c') diff --git a/AvailableColumnsPanel.c b/AvailableColumnsPanel.c index 6865b8b..1e548dc 100644 --- a/AvailableColumnsPanel.c +++ b/AvailableColumnsPanel.c @@ -26,7 +26,7 @@ typedef struct AvailableColumnsPanel_ { }*/ -static const char* AvailableColumnsFunctions[] = {" ", " ", " ", " ", "Add ", " ", " ", " ", " ", "Done ", NULL}; +static const char* const AvailableColumnsFunctions[] = {" ", " ", " ", " ", "Add ", " ", " ", " ", " ", "Done ", NULL}; static void AvailableColumnsPanel_delete(Object* object) { Panel* super = (Panel*) object; @@ -81,7 +81,7 @@ AvailableColumnsPanel* AvailableColumnsPanel_new(Panel* columns) { for (int i = 1; i < Platform_numberOfFields; i++) { if (i != COMM && Process_fields[i].description) { char description[256]; - snprintf(description, sizeof(description), "%s - %s", Process_fields[i].name, Process_fields[i].description); + xSnprintf(description, sizeof(description), "%s - %s", Process_fields[i].name, Process_fields[i].description); Panel_add(super, (Object*) ListItem_new(description, i)); } } -- cgit v1.2.3