From c67f47ca1b258564ebc9beb8cb24f5433f7383eb Mon Sep 17 00:00:00 2001 From: Lionel Gauthier <lionel.gauthier@eurecom.fr> Date: Thu, 24 Apr 2014 15:31:30 +0000 Subject: [PATCH] sprintf to snprintf git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5294 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair-cn/MME_APP/mme_app_ue_context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair-cn/MME_APP/mme_app_ue_context.h b/openair-cn/MME_APP/mme_app_ue_context.h index b84a45f413..1e2c2967e7 100644 --- a/openair-cn/MME_APP/mme_app_ue_context.h +++ b/openair-cn/MME_APP/mme_app_ue_context.h @@ -64,7 +64,7 @@ typedef uint64_t mme_app_imsi_t; /* Convert the IMSI contained by a char string NULL terminated to uint64_t */ #define MME_APP_STRING_TO_IMSI(sTRING, iMSI) sscanf(sTRING, "%"IMSI_FORMAT, iMSI) -#define MME_APP_IMSI_TO_STRING(iMSI, sTRING) sprintf(sTRING, "%"IMSI_FORMAT, iMSI) +#define MME_APP_IMSI_TO_STRING(iMSI, sTRING) snprintf(sTRING, IMSI_DIGITS_MAX+1, "%"IMSI_FORMAT, iMSI) /** @struct bearer_context_t * @brief Parameters that should be kept for an eps bearer. -- GitLab