diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-02-07 20:14:22 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-02-07 20:14:22 +0000 |
commit | 035dd093f79d9a78608174d471d8807a8bd4057a (patch) | |
tree | 852182e1b95a35f2f773eed098eb7fad1d256f90 /capture_sync.c | |
parent | d01ae28b6fe6b8b382fba73990c4cbe25dec0735 (diff) | |
download | wireshark-035dd093f79d9a78608174d471d8807a8bd4057a.tar.gz wireshark-035dd093f79d9a78608174d471d8807a8bd4057a.tar.bz2 wireshark-035dd093f79d9a78608174d471d8807a8bd4057a.zip |
when building the argv string, use save_file_fd_str instead of save_file_fd to avoid confusion with the capture_opts field
svn path=/trunk/; revision=13343
Diffstat (limited to 'capture_sync.c')
-rw-r--r-- | capture_sync.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/capture_sync.c b/capture_sync.c index 7099782468..098f921959 100644 --- a/capture_sync.c +++ b/capture_sync.c @@ -216,7 +216,7 @@ sync_pipe_do_capture(capture_options *capture_opts, gboolean is_tempfile) { char scount[24]; /* need a constant for len of numbers */ char sautostop_filesize[24]; /* need a constant for len of numbers */ char sautostop_duration[24]; /* need a constant for len of numbers */ - char save_file_fd[24]; + char save_file_fd_str[24]; #ifndef _WIN32 char errmsg[1024+1]; #endif @@ -249,8 +249,8 @@ sync_pipe_do_capture(capture_options *capture_opts, gboolean is_tempfile) { argv = sync_pipe_add_arg(argv, &argc, capture_opts->save_file); argv = sync_pipe_add_arg(argv, &argc, "-W"); - sprintf(save_file_fd,"%d",capture_opts->save_file_fd); /* in lieu of itoa */ - argv = sync_pipe_add_arg(argv, &argc, save_file_fd); + sprintf(save_file_fd_str,"%d",capture_opts->save_file_fd); /* in lieu of itoa */ + argv = sync_pipe_add_arg(argv, &argc, save_file_fd_str); if (capture_opts->has_autostop_packets) { argv = sync_pipe_add_arg(argv, &argc, "-c"); |