summaryrefslogtreecommitdiff
path: root/misc/kcd/files
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-05-27 16:15:30 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-05-27 16:15:30 +0000
commitdc1da2948a3e39100b627d143e195f9fa551576f (patch)
tree92f382994690aabccbe559882dac5133671534a2 /misc/kcd/files
parent. add LICENSE=GPLv2; (diff)
Fix build
Notes
Notes: svn path=/head/; revision=319268
Diffstat (limited to 'misc/kcd/files')
-rw-r--r--misc/kcd/files/patch-dirtree.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/misc/kcd/files/patch-dirtree.cc b/misc/kcd/files/patch-dirtree.cc
new file mode 100644
index 000000000000..740126bc9bb5
--- /dev/null
+++ b/misc/kcd/files/patch-dirtree.cc
@@ -0,0 +1,17 @@
+--- dirtree.cc.orig 2009-02-18 13:01:05.000000000 +0100
++++ dirtree.cc 2013-05-27 18:11:32.183060000 +0200
+@@ -170,12 +170,12 @@
+ ReadSaveFile(dirTree, filegz);
+ }
+ catch(ErrorBadFileFormat &) {
+- gzclose(file);
++ gzclose(filegz);
+ throw ErrorGenericFile(_("invalid file format in %$"), saveFile);
+
+ }
+ catch(ErrorGZIO &) {
+- gzclose(file);
++ gzclose(filegz);
+ throw ErrorGenericFile(_("error reading file %$"), saveFile);
+ }
+ gzclose(filegz);