Commit c567d0b5 authored by Lionel Gauthier's avatar Lionel Gauthier

sprintf buf size +1 for null char terminating string

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5293 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 24fb627b
...@@ -120,7 +120,7 @@ typedef struct { ...@@ -120,7 +120,7 @@ typedef struct {
(imsi)->digit[14] (imsi)->digit[14]
typedef struct { 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; uint8_t length;
} Imsi_t; } Imsi_t;
......
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