diff --git a/central-manager/lib/local/handler.c b/central-manager/lib/local/handler.c index 2ae56df..41a77e3 100644 --- a/central-manager/lib/local/handler.c +++ b/central-manager/lib/local/handler.c @@ -292,7 +292,7 @@ void* manageViewTerm(void* THREADABLE_ARGS){ count += last; last = sizeof(char); memcpy(buffer+count, &request.n, last); /* 3. Copie des données des avions */ - for( i = 0 ; i < request.n ; i++ ){ + for( i = 0 ; i < nb ; i++ ){ // Ignore les avions offline if( !request.data[i].online )