diff options
-rw-r--r-- | daemon/fromd/fromc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/fromd/fromc.c b/daemon/fromd/fromc.c index e77f3cc6..5ad3f7f1 100644 --- a/daemon/fromd/fromc.c +++ b/daemon/fromd/fromc.c @@ -12,6 +12,8 @@ int main(int argc, char *argv[]) int port, fd; char buf[64]; + memset(buf, 0, sizeof(buf)); + if (argc < 4) { fprintf(stderr, "Usage: %s ip port lookup_ip\n", argv[0]); return 0; |