diff --git a/src/phone.c b/src/phone.c index a4873b1..4b45d22 100644 --- a/src/phone.c +++ b/src/phone.c @@ -538,7 +538,7 @@ void phone_messages_add(Phone * phone, unsigned int index, char const * number, number = ""; if(content == NULL) content = ""; - snprintf(nd, sizeof(nd), "%s\n%12s%s", number, content, + snprintf(nd, sizeof(nd), "%s\n%.12s%s", number, content, (strlen(content) > 12) ? "..." : ""); gmtime_r(&date, &t); strftime(dd, sizeof(dd), "%d/%m/%Y %H:%M:%S", &t);