aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2008-05-06 15:38:19 +0800
committeritetcu <itetcu@FreeBSD.org>2008-05-06 15:38:19 +0800
commit35ad1d21bbffc561fafd0eecf7bc9765a58e7cc9 (patch)
tree1ef508fd20648d4abdda28e7d40bc0effd35a58d /graphics
parentd32b0eaeae8cc31604647d2075ba7127d3fee778 (diff)
downloadfreebsd-ports-gnome-35ad1d21bbffc561fafd0eecf7bc9765a58e7cc9.tar.gz
freebsd-ports-gnome-35ad1d21bbffc561fafd0eecf7bc9765a58e7cc9.tar.zst
freebsd-ports-gnome-35ad1d21bbffc561fafd0eecf7bc9765a58e7cc9.zip
- Fix crash if LANG is not set in env
- Bump PORTREVISION PR: ports/121473 Submitted by: Gerard Seibert <gerard@seibercom.net>, patch from Mel <fbsd.questions@rachie.is-a-geek.net>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gsnapshot/Makefile2
-rw-r--r--graphics/gsnapshot/files/patch-src__language.c12
2 files changed, 13 insertions, 1 deletions
diff --git a/graphics/gsnapshot/Makefile b/graphics/gsnapshot/Makefile
index 11f4c874c2e7..d6572aac6a08 100644
--- a/graphics/gsnapshot/Makefile
+++ b/graphics/gsnapshot/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gsnapshot
PORTVERSION= 1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= SF
diff --git a/graphics/gsnapshot/files/patch-src__language.c b/graphics/gsnapshot/files/patch-src__language.c
new file mode 100644
index 000000000000..0d416df7b406
--- /dev/null
+++ b/graphics/gsnapshot/files/patch-src__language.c
@@ -0,0 +1,12 @@
+--- ./src/language.c.orig 2007-07-16 01:05:23.000000000 +0300
++++ ./src/language.c 2008-05-06 10:20:22.000000000 +0300
+@@ -335,6 +335,9 @@
+ {
+ if (spoken == NULL) {
+ char *lang = getenv("LANG");
++ if(!lang)
++ return TranslationEnglish[label].locale;
++
+ if (strcmp(lang, "de") == 0 || strcmp(lang, "de_DE") == 0)
+ spoken = TranslationGerman;
+ else if (strcmp(lang, "es") == 0 || strcmp(lang, "es_ES") == 0)