From 05a8fdd4af000d8ef1597b02478744bb27cfd6ba Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Thu, 5 Jul 2018 10:46:00 +0200 Subject: Update version of conf.d/app-templates submodule. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes of conf.d/app-templates: (291aa4e - Romain Forlot) Change the default debug compilation options. (22a2cbf - Romain Forlot) Clearer coverage compilation options configuration (aa68dbd - Romain Forlot) Don't overwrite the autobuild script if it exists (a13e7b9 - Romain Forlot) Disable the in-tree build method. (51026d2 - Romain Forlot) Detect Yocto as OS distribution (1f2944e - Romain Forlot) Fix: wrong compile options added (92646f6 - Romain Forlot) Fallback using zip format if no wgtpkg-pack found (f65761c - José Bollo) 02-variables.cmake: Avoid checking CXX version if not required (3965d37 - José Bollo) config.cmake.sample: Remove dependency to libsystemd (a45ae0c - José Bollo) config.cmake.sample: Remove dependency to libmicrohttpd (9b17efe - Thierry Bultel) Added -D_FORTIFY_SOURCE=2 to CFLAGS (66f7bc8 - Thierry Bultel) start-on-target: uses RSYNC_PREFIX path for config (e400fb3 - Sebastien Douheret) Fixed spelling. Also, corrects warnings that appeared with this bump. Change-Id: Iec94bb4f49a6ce2b6cdb32154dc47ef7a31c614c Signed-off-by: Jonathan Aillet --- 4a-hal/4a-hal-manager/4a-hal-manager-cb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '4a-hal/4a-hal-manager/4a-hal-manager-cb.c') diff --git a/4a-hal/4a-hal-manager/4a-hal-manager-cb.c b/4a-hal/4a-hal-manager/4a-hal-manager-cb.c index 2b4fd67..f23ab5d 100644 --- a/4a-hal/4a-hal-manager/4a-hal-manager-cb.c +++ b/4a-hal/4a-hal-manager/4a-hal-manager-cb.c @@ -58,7 +58,7 @@ void HalMgrLoaded(AFB_ReqT request) { int requestJsonErr = 0, allHal = 0, verbose = 0; - char cardIdString[10]; + char cardIdString[32]; AFB_ApiT apiHandle; struct HalMgrData *HalMgrGlobalData; @@ -102,9 +102,9 @@ void HalMgrLoaded(AFB_ReqT request) // Case if request key is 'verbose' and value is bigger than 0 if(! requestJsonErr && verbose) { if(currentHalData->sndCardId >= 0) - snprintf(cardIdString, 6, "hw:%i", currentHalData->sndCardId); + snprintf(cardIdString, sizeof(cardIdString), "hw:%i", currentHalData->sndCardId); else - snprintf(cardIdString, 10, "not-found"); + snprintf(cardIdString, sizeof(cardIdString), "not-found"); wrap_json_pack(&apiObject, "{s:s s:i s:s s:i s:s s:s s:s s:s s:s}", -- cgit 1.2.3-korg