1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-17 15:28:05 +00:00

Update searpc-named-pipe-transport.c (#68)

Use g_realloc in named_pipe_client_handler
This commit is contained in:
Moritz Schlarb
2024-10-31 05:25:46 +01:00
committed by GitHub
parent 7f275255f0
commit d00c062d76

View File

@@ -480,7 +480,7 @@ static void named_pipe_client_handler(void *data)
while (bufsize < len) {
bufsize *= 2;
buf = realloc(buf, bufsize);
buf = g_realloc(buf, bufsize);
}
if (pipe_read_n(connfd, buf, len) < 0 || len == 0) {