qca-swiss-army-knife: fix string length for ar9340

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
This commit is contained in:
Gabor Juhos 2012-12-06 19:17:20 +01:00 committed by Luis R. Rodriguez
parent 248f3d5a3e
commit 95d10e6dca

View file

@ -838,7 +838,7 @@ static void print_initvals_family(char *family, bool check)
ar9330_1p2_hw_print_initvals(check);
if (!check)
printf("#endif /* INITVALS_9330_1P2_H */\n");
} else if (strncmp(family, "ar9340", 10) == 0) {
} else if (strncmp(family, "ar9340", 6) == 0) {
if (!check) {
printf("#ifndef INITVALS_9340_H\n");
printf("#define INITVALS_9340_H\n");