aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon
diff options
context:
space:
mode:
Diffstat (limited to 'code/qcommon')
-rw-r--r--code/qcommon/common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/code/qcommon/common.c b/code/qcommon/common.c
index fbeea3c..75e5f80 100644
--- a/code/qcommon/common.c
+++ b/code/qcommon/common.c
@@ -2382,7 +2382,7 @@ void Com_ReadCDKey( const char *filename ) {
char buffer[33];
char fbuffer[MAX_OSPATH];
- sprintf(fbuffer, "%s/q3key", filename);
+ Com_sprintf(fbuffer, sizeof(fbuffer), "%s/q3key", filename);
FS_SV_FOpenFileRead( fbuffer, &f );
if ( !f ) {
@@ -2412,7 +2412,7 @@ void Com_AppendCDKey( const char *filename ) {
char buffer[33];
char fbuffer[MAX_OSPATH];
- sprintf(fbuffer, "%s/q3key", filename);
+ Com_sprintf(fbuffer, sizeof(fbuffer), "%s/q3key", filename);
FS_SV_FOpenFileRead( fbuffer, &f );
if (!f) {
@@ -2447,7 +2447,7 @@ static void Com_WriteCDKey( const char *filename, const char *ikey ) {
#endif
- sprintf(fbuffer, "%s/q3key", filename);
+ Com_sprintf(fbuffer, sizeof(fbuffer), "%s/q3key", filename);
Q_strncpyz( key, ikey, 17 );