ae6e8f236b
time right now. Tree is still locked! Reasons for the update: - good work that can be used now - only builds on i386/amd64, and they're fast - multiple security problems in old chrome - old chrome half working, can't break it more than it was. This one requires resources (see MESSAGE), but it's ways more stable. Again, discussed with sthen@, jasper@, naddy@, miod@
17 lines
680 B
Plaintext
17 lines
680 B
Plaintext
$OpenBSD: patch-base_string_util_posix_h,v 1.2 2011/02/08 09:43:02 espie Exp $
|
|
--- base/string_util_posix.h.orig Fri Jan 21 10:20:15 2011
|
|
+++ base/string_util_posix.h Mon Jan 24 00:01:36 2011
|
|
@@ -45,7 +45,12 @@ inline int strncmp16(const char16* s1, const char16* s
|
|
inline int vswprintf(wchar_t* buffer, size_t size,
|
|
const wchar_t* format, va_list arguments) {
|
|
DCHECK(IsWprintfFormatPortable(format));
|
|
+#if defined(OS_OPENBSD)
|
|
+ // OpenBSD does not have a wide-char equivalent
|
|
+ return ::vsnprintf((char *)buffer, size, (const char *)format, arguments);
|
|
+#else
|
|
return ::vswprintf(buffer, size, format, arguments);
|
|
+#endif
|
|
}
|
|
|
|
} // namespace base
|