diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-05-19 21:00:46 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-05-19 21:00:46 +0000 |
commit | 051b782fa0ed834d7b4f80e5f1540d4d96e5f9d7 (patch) | |
tree | eadaef546274775aaa08c66865db80b33e98abdb /src/wsdebug.c | |
parent | 9c13b359b496c5268702776105a9f87b269e84f3 (diff) | |
download | vim-git-051b782fa0ed834d7b4f80e5f1540d4d96e5f9d7.tar.gz |
updated for version 7.0073
Diffstat (limited to 'src/wsdebug.c')
-rw-r--r-- | src/wsdebug.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wsdebug.c b/src/wsdebug.c index c3dba9931..2707fae20 100644 --- a/src/wsdebug.c +++ b/src/wsdebug.c @@ -86,10 +86,11 @@ wsdebug_log_init( 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) { |