diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2013-05-21 12:35:30 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-05-21 12:39:41 +0200 |
commit | 6c0e2966d82588017185b2d02d17178f4743531e (patch) | |
tree | f77258c8fe2a58c70ee20f58deb6b88a98ea44a7 | |
parent | be00f614bbbd8f174d5c779f8eeceddf33c22ed8 (diff) | |
download | neard-6c0e2966d82588017185b2d02d17178f4743531e.tar.gz neard-6c0e2966d82588017185b2d02d17178f4743531e.tar.bz2 neard-6c0e2966d82588017185b2d02d17178f4743531e.zip |
nfctool: sniffer: Set the time string first character to 0
If the show_timestamp option is disabled, the string needs to be properly
terminated.
-rw-r--r-- | tools/nfctool/llcp-decode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/nfctool/llcp-decode.c b/tools/nfctool/llcp-decode.c index fa42af5..4fb2c29 100644 --- a/tools/nfctool/llcp-decode.c +++ b/tools/nfctool/llcp-decode.c @@ -475,6 +475,8 @@ int llcp_print_pdu(guint8 *data, guint32 data_len, struct timeval *timestamp) direction_color = COLOR_GREEN; } + time_str[0] = 0; + if (opts.show_timestamp != SNIFFER_SHOW_TIMESTAMP_NONE) { char prefix = ' '; |