diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-08 11:28:06 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-08 11:28:06 +0800 |
commit | f09589e00925a3d9a03105ca5ff3717120acc853 (patch) | |
tree | 72db57ae5c222dce8caf50a514e601dbe8e28abd /daemon/fromd | |
parent | a8b9f4301aa727c081d3d112ae2129a603d74d70 (diff) | |
download | pttbbs-f09589e00925a3d9a03105ca5ff3717120acc853.tar pttbbs-f09589e00925a3d9a03105ca5ff3717120acc853.tar.gz pttbbs-f09589e00925a3d9a03105ca5ff3717120acc853.tar.bz2 pttbbs-f09589e00925a3d9a03105ca5ff3717120acc853.tar.lz pttbbs-f09589e00925a3d9a03105ca5ff3717120acc853.tar.xz pttbbs-f09589e00925a3d9a03105ca5ff3717120acc853.tar.zst pttbbs-f09589e00925a3d9a03105ca5ff3717120acc853.zip |
Clean buffer first.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4098 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'daemon/fromd')
-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; |