X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_api.c;h=edd80aeec36cc3087b3facd79114da9cc7af7cd0;hb=5aa958980652d72433ba8e9e500b8dfd123d56a1;hp=6046052f1be597943442acb832b0109d00ea4b62;hpb=32e91737086db53bb1fd9ed9f79d693c43ec459f;p=m6w6%2Fext-http diff --git a/http_api.c b/http_api.c index 6046052..edd80ae 100644 --- a/http_api.c +++ b/http_api.c @@ -206,9 +206,7 @@ void _http_log_ex(char *file, const char *ident, const char *message TSRMLS_DC) { time_t now; struct tm nowtm; - char datetime[128]; - - HTTP_CHECK_OPEN_BASEDIR(file, return); + char datetime[20] = {0}; time(&now); strftime(datetime, sizeof(datetime), "%Y-%m-%d %H:%M:%S", php_localtime_r(&now, &nowtm));