Fix segfaults from vsnprintf() in dependent ports

This commit is contained in:
Jason E. Hale 2016-11-22 15:42:57 +00:00
parent cbf24cd091
commit 8dbda492b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=426832
2 changed files with 11 additions and 1 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= fox PORTNAME= fox
PORTVERSION= 1.6.52 PORTVERSION= 1.6.52
PORTREVISION= 1
CATEGORIES= x11-toolkits CATEGORIES= x11-toolkits
MASTER_SITES= ftp://ftp.fox-toolkit.org/pub/ \ MASTER_SITES= ftp://ftp.fox-toolkit.org/pub/ \
http://ftp.fox-toolkit.org/pub/ http://ftp.fox-toolkit.org/pub/

View File

@ -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 +++ 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 @@ -2365,7 +2365,7 @@ FXString& FXString::vformat(const FXchar
#else #else
va_list ag; va_list ag;