diff --git a/res/core/common/items.xml b/res/core/common/items.xml index c8910e695..d867a3126 100644 --- a/res/core/common/items.xml +++ b/res/core/common/items.xml @@ -1,10 +1,6 @@ - - - - diff --git a/res/items.xml b/res/items.xml new file mode 100644 index 000000000..e8fa7246a --- /dev/null +++ b/res/items.xml @@ -0,0 +1,3 @@ + + + diff --git a/src/kernel/order.c b/src/kernel/order.c index 63048626b..f7e94a2aa 100644 --- a/src/kernel/order.c +++ b/src/kernel/order.c @@ -544,7 +544,8 @@ char *write_order(const order * ord, char *buffer, size_t size) keyword_t kwd = ORD_KEYWORD(ord); if (kwd == NOKEYWORD) { const char *text = ORD_STRING(ord); - strlcpy(buffer, (const char *)text, size); + if (text) strlcpy(buffer, (const char *)text, size); + else buffer[0] = 0; } else { get_command(ord, buffer, size);