diff --git a/vcl/opengl/win/WinDeviceInfo.cxx b/vcl/opengl/win/WinDeviceInfo.cxx index 5fa5aaccf748..c3d9ba076742 100644 --- a/vcl/opengl/win/WinDeviceInfo.cxx +++ b/vcl/opengl/win/WinDeviceInfo.cxx @@ -63,10 +63,8 @@ void GetDLLVersion(const sal_Unicode* aDLLPath, OUString& aVersion) vers[2] = HIWORD(fileVersLS); vers[3] = LOWORD(fileVersLS); - char buf[256]; - sprintf(buf, "%d.%d.%d.%d", vers[0], vers[1], vers[2], vers[3]); - OString aBuf(buf); - aVersion = OStringToOUString(aBuf, RTL_TEXTENCODING_UTF8); + aVersion = OUString::number(vers[0]) + "." + OUString::number(vers[1]) + + "." + OUString::number(vers[2]) + "." + OUString::number(vers[3]); } /*