On Wed, Feb 26, 2014 at 06:44:36PM -0300, Fabio Estevam wrote: > From: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> > > Fix the following static checker warning: > > drivers/staging/imx-drm/imx-ldb.c:340 imx_ldb_get_clk() error: format string overflow. buf_size: 16 length: 18 > probably 18 is theory and not real life, but 16 is based on > theory as well. I think using snprintf() would be better... snprintf(clkname, sizeof(clkname), "di%d", chno); rather than increasing the buffer to hold a maximal-size decimal integer. -- FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly improving, and getting towards what was expected from it. _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel