openbsd-ports/net/gftp/patches/patch-src_text_gftp-text_c
ajacoutot d2dc2575e1 - SECURITY: fix two boundary errors in fsplib code when processing
overly long directory or file names (CVE-2007-3961 & CVE-2007-3962
from Gentoo CVS via FreeBSD
- regen patches while here
2007-11-06 12:14:18 +00:00

17 lines
543 B
Plaintext

$OpenBSD: patch-src_text_gftp-text_c,v 1.2 2007/11/06 12:14:18 ajacoutot Exp $
--- src/text/gftp-text.c.orig Tue Jan 25 02:11:00 2005
+++ src/text/gftp-text.c Tue Nov 6 13:05:08 2007
@@ -185,7 +185,12 @@ gftp_text_ask_question (const char *question, int echo
else
infd = stdin;
+#if GLIB_MAJOR_VERSION > 1
locale_question = g_locale_from_utf8 (question, -1, NULL, NULL, NULL);
+#else
+ locale_question = NULL;
+#endif
+
if (locale_question != NULL)
{
printf ("%s%s%s ", GFTPUI_COMMON_COLOR_BLUE, locale_question,