aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-04-12 18:43:44 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-04-12 18:43:44 +0000
commit191433027437ddc98ac595c50d9e431bf0f576e6 (patch)
tree8a55b4747e36304a6cb8dfe191e8d2febfe65ef8 /editcap.c
parent7b43d9c705c520f0ad28a6d56cf894adb181008b (diff)
Don't bother to strcpy() an empty string; just set buf[0] = '\0': Coverity 626
svn path=/trunk/; revision=36601
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editcap.c b/editcap.c
index 770781b75d..3c70c7f14d 100644
--- a/editcap.c
+++ b/editcap.c
@@ -166,7 +166,7 @@ abs_time_to_str_with_sec_resolution(const struct wtap_nstime *abs_time)
tmp->tm_min,
tmp->tm_sec);
} else
- strcpy(buf, "");
+ buf[0] = '\0';
return buf;
}