eal: use safe snprintf to print version
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 16 Dec 2014 16:30:24 +0000 (16:30 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 16 Dec 2014 23:40:37 +0000 (00:40 +0100)
commit8b27765d67604009e117476e66f6b9297e7c9e33
treec4a797488fba1170d4fc8c9fa128f9bc29fc6722
parent60a3df650d523bd2e4bb4f77f9278f25f7f1a65c
eal: use safe snprintf to print version

When printing the version string to a local variable, use snprintf for
safety over sprintf. This is general good practice even if the values
to print are all hard-coded.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/common/include/rte_version.h