1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

cgi: setenv: remove equals from arg

https://github.com/warmcat/libwebsockets/issues/3222
This commit is contained in:
ribes96 2024-09-23 10:35:23 +01:00 committed by Andy Green
parent b462ccd7dd
commit 7467274d4d

View file

@ -549,8 +549,10 @@ lws_spawn_piped(const struct lws_spawn_piped_info *i)
int naml = lws_ptr_diff(p, i->env_array[m]);
char enam[32];
lws_strnncpy(enam, i->env_array[m], naml, sizeof(enam));
setenv(enam, p, 1);
if (p) {
lws_strnncpy(enam, i->env_array[m], naml, sizeof(enam));
setenv(enam, p + 1, 1);
}
m++;
}
#endif