Skip to content

Commit

Permalink
cgame: use Com_sprintf to avoid copy and va()
Browse files Browse the repository at this point in the history
  • Loading branch information
Aranud committed Dec 1, 2021
1 parent 7ce54ba commit afade8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cgame/cg_locations.c
Expand Up @@ -70,7 +70,7 @@ void CG_LocationsSave(const char *path)
}
else
{
Q_strncpyz(output, va("maps/%s_loc_local.dat", cgs.rawmapname), sizeof(output));
Com_sprintf(output, sizeof(output), "maps/%s_loc_local.dat", cgs.rawmapname);
}

CG_Printf("Number of locations to save: %i\n", cgs.numLocations);
Expand Down

0 comments on commit afade8e

Please sign in to comment.