diff --git a/api/boinc_api.cpp b/api/boinc_api.cpp index 26e451e7da..7253e2ebad 100644 --- a/api/boinc_api.cpp +++ b/api/boinc_api.cpp @@ -200,7 +200,7 @@ char* boinc_msg_prefix(char* sbuf, int len) { struct tm* tm = localtime(&x); strftime(buf, sizeof(buf)-1, "%H:%M:%S", tm); #ifdef _WIN32 - snprintf(sbuf, len, "%s (%d):", buf, GetCurrentProcessId()); + _snprintf(sbuf, len, "%s (%d):", buf, GetCurrentProcessId()); #else snprintf(sbuf, len, "%s (%d):", buf, getpid()); #endif