@@ -3584,17 +3584,17 @@ void read_topscores(void)
3584
3584
race_fgets (line , MAX_TXTLEN );
3585
3585
race .records [cnt ].time = atof (line );
3586
3586
race_fgets (line , MAX_TXTLEN );
3587
- strlcpy (race .records [cnt ].racername , line , strlen ( line ));
3587
+ strlcpy (race .records [cnt ].racername , line , sizeof ( race . records [ cnt ]. racername ));
3588
3588
race_fgets (line , MAX_TXTLEN );
3589
- strlcpy (race .records [cnt ].demoname , line , strlen ( line ));
3589
+ strlcpy (race .records [cnt ].demoname , line , sizeof ( race . records [ cnt ]. demoname ));
3590
3590
race_fgets (line , MAX_TXTLEN );
3591
3591
race .records [cnt ].distance = atof (line );
3592
3592
race_fgets (line , MAX_TXTLEN );
3593
3593
race .records [cnt ].maxspeed = atof (line );
3594
3594
race_fgets (line , MAX_TXTLEN );
3595
3595
race .records [cnt ].avgspeed = atof (line );
3596
3596
race_fgets (line , MAX_TXTLEN );
3597
- strlcpy (race .records [cnt ].date , line , strlen ( line ));
3597
+ strlcpy (race .records [cnt ].date , line , sizeof ( race . records [ cnt ]. date ));
3598
3598
race_fgets (line , MAX_TXTLEN );
3599
3599
race .records [cnt ].weaponmode = atoi (line );
3600
3600
race_fgets (line , MAX_TXTLEN );
0 commit comments