From ab80227a7d918db44a569b84005fc2274f60d681 Mon Sep 17 00:00:00 2001 From: OursDesCavernes Date: Thu, 31 Oct 2019 01:47:14 +0100 Subject: [PATCH] fix possible buffer overflow (#5) * fix possible buffer overflow --- src/amdgpufand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amdgpufand.c b/src/amdgpufand.c index ebb013a..eb0c4f9 100644 --- a/src/amdgpufand.c +++ b/src/amdgpufand.c @@ -216,11 +216,11 @@ int probe_cards() for(i=0;id_name); if(isamdgpu(pathh) ==0 && cardd_name); cards[card].pwmfd = open(buffer,O_RDWR); if(cards[card].pwmfd<0)