X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fsetup.c;fp=src%2Fsetup.c;h=e0ca59da9b9d3c5e3bf76c72cca660eb538b1980;hp=e4ee63def95f31f8d1baa964333c5b441adb237c;hb=0c29dd2a524aab48238926e4a893ea406a851971;hpb=c4d3d7faa3e4fe1acd11997d0a600b0e2ca93107 diff --git a/src/setup.c b/src/setup.c index e4ee63d..e0ca59d 100644 --- a/src/setup.c +++ b/src/setup.c @@ -175,8 +175,8 @@ static void setup_names(void) /* Sets up some arrays with localized names. * Must be done after iostart() for localization to work. */ { - char *tmp1[] = SYSTEM_NAMES; - char *tmp2[] = DEVICE_NAMES; + char *tmp1[ARRAY_SIZE(systnames)] = SYSTEM_NAMES; + char *tmp2[ARRAY_SIZE(device)] = DEVICE_NAMES; memcpy(systnames, tmp1, sizeof(systnames)); memcpy(device, tmp2, sizeof(device));