From 0dd1f1d85865a9c47a5e30ab6be6999401092c16 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 25 Jun 2015 08:09:11 +0200 Subject: [PATCH] (NL) Implement 'No Information Is Available' string --- menu/intl/menu_hash_nl.c | 4 +++- menu/intl/menu_hash_us.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/menu/intl/menu_hash_nl.c b/menu/intl/menu_hash_nl.c index 5a2af4d14c..5ed1f6a89c 100644 --- a/menu/intl/menu_hash_nl.c +++ b/menu/intl/menu_hash_nl.c @@ -16,7 +16,8 @@ #include #include -#include + +#include #include "../menu_hash.h" @@ -754,6 +755,7 @@ int menu_hash_get_help_nl(uint32_t hash, char *s, size_t len) switch (hash) { default: + strlcpy(s, "Geen informatie beschikbaar.", len); return -1; } diff --git a/menu/intl/menu_hash_us.c b/menu/intl/menu_hash_us.c index 8ac2aa68dd..8613e6e9ba 100644 --- a/menu/intl/menu_hash_us.c +++ b/menu/intl/menu_hash_us.c @@ -2257,7 +2257,8 @@ int menu_hash_get_help_us(uint32_t hash, char *s, size_t len) "Positive Y axis is down."); break; default: - strlcpy(s, "No information is available.", len); + if (s[0] == '\0') + strlcpy(s, "No information is available.", len); return -1; }