Skip to content

Commit

Permalink
Low: crm_mon: Mail subject needs space for \0 byte.
Browse files Browse the repository at this point in the history
Mercurial revision: 1e3d058232226d14913f76be48b761630814e83c
  • Loading branch information
Lars Marowsky-Bree committed Nov 15, 2009
1 parent 278b85c commit 172715e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/crm_mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,7 @@ send_smtp_trap(const char *node, const char *rsc, const char *task, int target_r
len += strlen(rsc);
len += strlen(node);
len += strlen(desc);
len++;

crm_malloc0(crm_mail_subject, len);
snprintf(crm_mail_subject, len, "%s - %s event for %s on %s: %s", crm_mail_prefix, task, rsc, node, desc);
Expand Down

0 comments on commit 172715e

Please sign in to comment.