aboutsummaryrefslogtreecommitdiff
path: root/graphics/tclblt/patches/switch.patch
diff options
context:
space:
mode:
authorAndrey M. Lipaev <heliumflash@mail.ru>2019-06-29 07:59:18 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-06-29 07:59:18 +0700
commit377171575bcf191c26a95869e11ff1d4af2d0900 (patch)
treee14f774ddd60bf1245b259775ee13aae1955ee4e /graphics/tclblt/patches/switch.patch
parent96762179b68beac5a71a6657db96796a585d3c34 (diff)
graphics/tclblt: Added (Tcl/Tk Extension).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/tclblt/patches/switch.patch')
-rw-r--r--graphics/tclblt/patches/switch.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/tclblt/patches/switch.patch b/graphics/tclblt/patches/switch.patch
new file mode 100644
index 0000000000000..e24589f0c8bbf
--- /dev/null
+++ b/graphics/tclblt/patches/switch.patch
@@ -0,0 +1,15 @@
+Author: Sergei Golovan
+Description: Patch fixes a typo in -- switch processing.
+Last-Modified: Wed, 21 Mar 2018 11:04:36 +0300
+
+--- a/generic/bltSwitch.c
++++ b/generic/bltSwitch.c
+@@ -322,7 +322,7 @@
+ for (count = 0; count < argc; count++) {
+ arg = argv[count];
+ if (flags & BLT_SWITCH_OBJV_PARTIAL) {
+- if ((arg[0] != '-') || ((arg[1] == '-') && (argv[2] == '\0'))) {
++ if ((arg[0] != '-') || ((arg[1] == '-') && (arg[2] == '\0'))) {
+ /*
+ * If the argument doesn't start with a '-' (not a switch)
+ * or is '--', stop processing and return the number of