diff options
Diffstat (limited to 'protocols/Xfire/src/Xfire_base.cpp')
-rw-r--r-- | protocols/Xfire/src/Xfire_base.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Xfire/src/Xfire_base.cpp b/protocols/Xfire/src/Xfire_base.cpp index 6363c0e0dd..602a198997 100644 --- a/protocols/Xfire/src/Xfire_base.cpp +++ b/protocols/Xfire/src/Xfire_base.cpp @@ -524,7 +524,7 @@ BOOL Xfire_base::getGamename(unsigned int gameid, char* out, int outsize){ char dbstr[80] = "";
mir_snprintf(dbstr, XFIRE_MAXSIZEOFGAMENAME, "customgamename_%d", gameid);
if (!db_get(NULL, protocolname, dbstr, &dbv)) {
- mir_snprintf(out, outsize, "%s", dbv.pszVal);
+ strncpy_s(out, outsize, dbv.pszVal, _TRUNCATE);
db_free(&dbv);
return TRUE;
}
|