From 00ed82f8e499d07bcfd98c42acb4a52e43e5ba1e Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Sat, 9 Feb 2019 19:08:06 +0000 Subject: [PATCH] Extend the nvidia command size to 128 It was exactly 64 for small arguments, but that fails for larger overlocks --- daemon/gpuclockctl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/gpuclockctl.c b/daemon/gpuclockctl.c index a5fb773..51971f0 100644 --- a/daemon/gpuclockctl.c +++ b/daemon/gpuclockctl.c @@ -72,9 +72,9 @@ int set_gpu_state_nv(struct GameModeGPUInfo *info) // These commands don't technically even need root /* Set the GPUGraphicsClockOffset parameter */ - char core_arg[64]; + char core_arg[128]; snprintf(core_arg, - 64, + 128, "[gpu:%ld]/GPUGraphicsClockOffset[%ld]=%ld", info->device, info->nv_perf_level, @@ -86,9 +86,9 @@ int set_gpu_state_nv(struct GameModeGPUInfo *info) } /* Set the GPUMemoryTransferRateOffset parameter */ - char mem_arg[64]; + char mem_arg[128]; snprintf(mem_arg, - 64, + 128, "[gpu:%ld]/GPUMemoryTransferRateOffset[%ld]=%ld", info->device, info->nv_perf_level,