1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Fix potential overflow.

This commit is contained in:
Con Kolivas 2012-01-28 12:08:55 +11:00
parent 059701272c
commit 4bf01f012f

2
adl.c
View File

@ -116,7 +116,7 @@ static bool fanspeed_twin(struct gpu_adl *ga, struct gpu_adl *other_ga)
void init_adl(int nDevs) void init_adl(int nDevs)
{ {
int i, j, devices = 0, last_adapter = -1, gpu = 0, dummy = 0; int i, j, devices = 0, last_adapter = -1, gpu = 0, dummy = 0;
struct gpu_adapters adapters[nDevs], vadapters[nDevs]; struct gpu_adapters adapters[MAX_GPUDEVICES], vadapters[MAX_GPUDEVICES];
#if defined (LINUX) #if defined (LINUX)
hDLL = dlopen( "libatiadlxx.so", RTLD_LAZY|RTLD_GLOBAL); hDLL = dlopen( "libatiadlxx.so", RTLD_LAZY|RTLD_GLOBAL);