omap: Fix arch/arm/mach-omap2/mux.c: Off by one error

David Binderman ran the sourceforge tool cppcheck over the source code of the
new Linux kernel 2.6.33-rc6:

[./arm/mach-omap2/mux.c:492]: (error) Buffer access out-of-bounds

13 characters + 1 digit + 1 zero byte is more than 14 characters.

Also add a comment on mode0 name length in case new omaps
start using longer names.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

+2 -1
+2 -1
arch/arm/mach-omap2/mux.c
··· 486 static inline void omap_mux_decode(struct seq_file *s, u16 val) 487 { 488 char *flags[OMAP_MUX_MAX_NR_FLAGS]; 489 - char mode[14]; 490 int i = -1; 491 492 sprintf(mode, "OMAP_MUX_MODE%d", val & 0x7); ··· 553 if (!m0_name) 554 continue; 555 556 for (i = 0; i < OMAP_MUX_DEFNAME_LEN; i++) { 557 if (m0_name[i] == '\0') { 558 m0_def[i] = m0_name[i];
··· 486 static inline void omap_mux_decode(struct seq_file *s, u16 val) 487 { 488 char *flags[OMAP_MUX_MAX_NR_FLAGS]; 489 + char mode[sizeof("OMAP_MUX_MODE") + 1]; 490 int i = -1; 491 492 sprintf(mode, "OMAP_MUX_MODE%d", val & 0x7); ··· 553 if (!m0_name) 554 continue; 555 556 + /* REVISIT: Needs to be updated if mode0 names get longer */ 557 for (i = 0; i < OMAP_MUX_DEFNAME_LEN; i++) { 558 if (m0_name[i] == '\0') { 559 m0_def[i] = m0_name[i];