mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 720016 - warning when compiling the maintenance service - swprintf takes a count parameter. r=bbondy
This commit is contained in:
parent
fd28c7afb5
commit
b4a0cbf1ca
@ -186,9 +186,11 @@ GetBackupLogPath(LPWSTR path, LPCWSTR basePath, int logNumber)
|
||||
WCHAR logName[64];
|
||||
wcscpy(path, basePath);
|
||||
if (logNumber <= 0) {
|
||||
swprintf(logName, L"maintenanceservice.log");
|
||||
swprintf(logName, sizeof(logName) / sizeof(logName[0]),
|
||||
L"maintenanceservice.log");
|
||||
} else {
|
||||
swprintf(logName, L"maintenanceservice-%d.log", logNumber);
|
||||
swprintf(logName, sizeof(logName) / sizeof(logName[0]),
|
||||
L"maintenanceservice-%d.log", logNumber);
|
||||
}
|
||||
return PathAppendSafe(path, logName);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user