Re: [PATCH v5 2/2] imx-drm: imx-ldb: Use snprintf()

2014-02-28 Thread Philipp Zabel
Am Freitag, den 28.02.2014, 11:39 -0300 schrieb Fabio Estevam: > From: Fabio Estevam > > Use snprintf() in order to 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 the

[PATCH v5 2/2] imx-drm: imx-ldb: Use snprintf()

2014-02-28 Thread Fabio Estevam
From: Fabio Estevam Use snprintf() in order to 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. Reported-by: Dan C