From: Dmitry Volyntsev Date: Wed, 24 Feb 2021 16:57:05 +0000 (+0000) Subject: Fixed compilation error with gcc-11. X-Git-Tag: 0.5.2~7 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=d191eb8e4abca22e459bf1a97de087f93980bef3;p=njs.git Fixed compilation error with gcc-11. This closes #376 issue on Github. --- diff --git a/src/njs_fs.c b/src/njs_fs.c index 0cb9b380..a51477c4 100644 --- a/src/njs_fs.c +++ b/src/njs_fs.c @@ -1373,8 +1373,8 @@ njs_fs_rmtree(njs_vm_t *vm, const char *path, njs_bool_t recursive, static const char * -njs_fs_path(njs_vm_t *vm, char *storage, const njs_value_t *src, - const char *prop_name) +njs_fs_path(njs_vm_t *vm, char storage[NJS_MAX_PATH + 1], + const njs_value_t *src, const char *prop_name) { u_char *p; njs_str_t str;