diff options
author | Jiawen Geng <technicalcute@gmail.com> | 2022-04-11 09:52:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-11 09:52:28 +0800 |
commit | a78671543b671d93fa349dcaa3f87f8ed4bcd116 (patch) | |
tree | d50a42c2d8024dd8dc1f78b3ab92b3f76dde83f7 /docs/code/cgi/main.c | |
parent | 69ebb2d720ac476248460e1fb3f0f3d10af483dc (diff) | |
download | libuv-a78671543b671d93fa349dcaa3f87f8ed4bcd116.tar.gz libuv-a78671543b671d93fa349dcaa3f87f8ed4bcd116.zip |
doc: make sample cross-platform build (#3592)
Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'docs/code/cgi/main.c')
-rw-r--r-- | docs/code/cgi/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/code/cgi/main.c b/docs/code/cgi/main.c index d2e34265..97422110 100644 --- a/docs/code/cgi/main.c +++ b/docs/code/cgi/main.c @@ -15,8 +15,8 @@ void cleanup_handles(uv_process_t *req, int64_t exit_status, int term_signal) { } void invoke_cgi_script(uv_tcp_t *client) { - size_t size = 500; - char path[size]; + char path[500]; + size_t size = sizeof(path); uv_exepath(path, &size); strcpy(path + (strlen(path) - strlen("cgi")), "tick"); |