Fix segfaults from vsnprintf() in dependent ports
This commit is contained in:
parent
cbf24cd091
commit
8dbda492b0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=426832
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= fox
|
||||
PORTVERSION= 1.6.52
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11-toolkits
|
||||
MASTER_SITES= ftp://ftp.fox-toolkit.org/pub/ \
|
||||
http://ftp.fox-toolkit.org/pub/
|
||||
|
@ -1,5 +1,14 @@
|
||||
--- src/FXString.cpp.orig 2016-11-18 18:04:41 UTC
|
||||
--- src/FXString.cpp.orig 2016-06-16 04:16:00 UTC
|
||||
+++ src/FXString.cpp
|
||||
@@ -2353,7 +2353,7 @@ FXString& FXString::vformat(const FXchar
|
||||
length(result);
|
||||
vsnprintf(str,length()+1,fmt,args);
|
||||
#elif defined(HAVE_VSNPRINTF) // Have vsnprintf()
|
||||
-#if (__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1))
|
||||
+#if (__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1)) || defined(__FreeBSD__)
|
||||
va_list ag;
|
||||
va_copy(ag,args);
|
||||
result=vsnprintf(str,length(),fmt,ag);
|
||||
@@ -2365,7 +2365,7 @@ FXString& FXString::vformat(const FXchar
|
||||
#else
|
||||
va_list ag;
|
||||
|
Loading…
Reference in New Issue
Block a user