summaryrefslogtreecommitdiff
path: root/utils/astman.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-07-14 13:57:15 +0000
committerMark Spencer <markster@digium.com>2004-07-14 13:57:15 +0000
commit044ad2e2e7a74049ed5c2215d00624be9f045e60 (patch)
tree30a1118273807f5c6ba0e3ca611ab0c6a160fa3b /utils/astman.c
parent9cd917c42a6cf0661861a7e19d4685b2449df43f (diff)
Merge remaining audit patch (save dlfcn.c)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'utils/astman.c')
-rwxr-xr-xutils/astman.c4
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;