sprintf buf size +1 for null char terminating string
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5293 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -120,7 +120,7 @@ typedef struct {
|
||||
(imsi)->digit[14]
|
||||
|
||||
typedef struct {
|
||||
uint8_t digit[IMSI_DIGITS_MAX];
|
||||
uint8_t digit[IMSI_DIGITS_MAX+1]; // +1 for '\0` macro sprintf changed in snprintf
|
||||
uint8_t length;
|
||||
} Imsi_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user