aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--4a-hal/4a-hal-manager/4a-hal-manager-cb.c6
m---------conf.d/app-templates0
2 files changed, 3 insertions, 3 deletions
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}",
diff --git a/conf.d/app-templates b/conf.d/app-templates
-Subproject 6621af007c13b12bb1d33d0edf75db600a42f74
+Subproject 291aa4ef053ba7564759d3a0ba3c027e1ede0ef