Commit c67f47ca authored by Lionel Gauthier's avatar Lionel Gauthier

sprintf to snprintf

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5294 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent c567d0b5
...@@ -64,7 +64,7 @@ typedef uint64_t mme_app_imsi_t; ...@@ -64,7 +64,7 @@ typedef uint64_t mme_app_imsi_t;
/* Convert the IMSI contained by a char string NULL terminated to uint64_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_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 /** @struct bearer_context_t
* @brief Parameters that should be kept for an eps bearer. * @brief Parameters that should be kept for an eps bearer.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment