aboutsummaryrefslogtreecommitdiffstats
path: root/vbistuff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:41 (GMT)
committerGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:41 (GMT)
commit1ddc68f41b45a67503550821e4492c6a08970c88 (patch)
tree6bcbc690aa3a884a38e7d7a56a5ca566c9264a4a /vbistuff
parentac831d7dd6f53438c58f76d61e4a1bebd27008a9 (diff)
v3.90
Diffstat (limited to 'vbistuff')
-rw-r--r--vbistuff/alevtd.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/vbistuff/alevtd.c b/vbistuff/alevtd.c
index 40bc944..4db63bb 100644
--- a/vbistuff/alevtd.c
+++ b/vbistuff/alevtd.c
@@ -289,6 +289,12 @@ xerror(int loglevel, char *txt, char *peerhost)
}
}
+static void
+dummy_handler(vbi_event *ev, void *unused)
+{
+ return;
+}
+
/* ---------------------------------------------------------------------- */
/* main loop */
@@ -584,7 +590,7 @@ main(int argc, char *argv[])
canonicalhost = 1;
/* fall through */
case 'n':
- strcpy(server_host,optarg);
+ strncpy(server_host,optarg,sizeof(server_host)-1);
break;
case 'i':
listen_ip = optarg;
@@ -628,6 +634,8 @@ main(int argc, char *argv[])
}
if (debug)
vbi_event_handler_add(vbi->dec,~0,vbi_dump_event,vbi);
+ else
+ vbi_event_handler_add(vbi->dec,~0,dummy_handler,vbi);
/* bind to socket */
slisten = -1;

Privacy Policy