aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
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;
}