diff options
Diffstat (limited to 'utils/astman.c')
-rwxr-xr-x | utils/astman.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/astman.c b/utils/astman.c index 1fa41568b..752868172 100755 --- a/utils/astman.c +++ b/utils/astman.c @@ -178,8 +178,8 @@ static struct event { static int process_message(struct ast_mansession *s, struct message *m) { int x; - char event[80]; - strncpy(event, get_header(m, "Event"), sizeof(event)); + char event[80] = ""; + strncpy(event, get_header(m, "Event"), sizeof(event) - 1); if (!strlen(event)) { fprintf(stderr, "Missing event in request"); return 0; |