|
|
@@ -823,7 +823,7 @@ static void pipe_log(void *param, uint8_t *data, size_t size)
|
|
|
static inline bool init_pipe(struct game_capture *gc)
|
|
|
{
|
|
|
char name[64];
|
|
|
- sprintf(name, "%s%lu", PIPE_NAME, gc->process_id);
|
|
|
+ snprintf(name, sizeof(name), "%s%lu", PIPE_NAME, gc->process_id);
|
|
|
|
|
|
if (!ipc_pipe_server_start(&gc->pipe, name, pipe_log, gc)) {
|
|
|
warn("init_pipe: failed to start pipe");
|