diff options
Diffstat (limited to 'parsing.c')
-rw-r--r-- | parsing.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -77,7 +77,7 @@ static void parse_user(const char *t, char **name, char **email, unsigned long * | |||
77 | 77 | ||
78 | email_len = ident.mail_end - ident.mail_begin; | 78 | email_len = ident.mail_end - ident.mail_begin; |
79 | *email = xmalloc(strlen("<") + email_len + strlen(">") + 1); | 79 | *email = xmalloc(strlen("<") + email_len + strlen(">") + 1); |
80 | sprintf(*email, "<%.*s>", email_len, ident.mail_begin); | 80 | xsnprintf(*email, email_len + 3, "<%.*s>", email_len, ident.mail_begin); |
81 | 81 | ||
82 | if (ident.date_begin) | 82 | if (ident.date_begin) |
83 | *date = strtoul(ident.date_begin, NULL, 10); | 83 | *date = strtoul(ident.date_begin, NULL, 10); |