Mercurial > vim
diff src/wsdebug.c @ 273:2463194c8cdd
updated for version 7.0073
author | vimboss |
---|---|
date | Thu, 19 May 2005 21:00:46 +0000 |
parents | 3fc0f57ecb91 |
children | c4d200412ae9 |
line wrap: on
line diff
--- 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) {