updated for version 7.0073
diff --git a/src/wsdebug.c b/src/wsdebug.c
index c3dba99..2707fae 100644
--- a/src/wsdebug.c
+++ b/src/wsdebug.c
@@ -86,10 +86,11 @@
char *file; /* possible ws_debug output file */
char *cp; /* ws_dlevel pointer */
- if (log_var && (file = getenv(log_var)) != NULL) {
+ if (log_var && (file = getenv(log_var)) != NULL)
+ {
char buf[BUFSIZ];
- sprintf(buf, "date > %s", file);
+ vim_snprintf(buf, sizeof(buf), "date > %s", file);
system(buf);
ws_debug = fopen(file, "a");
if (level_var && (cp = getenv(level_var)) != NULL) {