diff options
author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2017-01-11 11:37:21 (GMT) |
---|---|---|
committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2017-01-11 11:37:21 (GMT) |
commit | 1084096efc08333a282480922a2bb2c58e28fce2 (patch) | |
tree | 68dc8a4d9a6b01fe2552e0189e05f9455cdf9887 /generic | |
parent | b1caabe329c6e8ee762ae50d31c663627feacd94 (diff) | |
parent | 7cc8f691b7c9b5109330a360c9d677ceb60610fa (diff) | |
download | tk-1084096efc08333a282480922a2bb2c58e28fce2.zip tk-1084096efc08333a282480922a2bb2c58e28fce2.tar.gz tk-1084096efc08333a282480922a2bb2c58e28fce2.tar.bz2 |
Fix [d4fb4e80d220e46e588f310291fd7a4205e8cd67|d4fb4e80d2]: Image photo commands read/write/put do not accept "-" as first letter in file names resp. image data
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkImgPhoto.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c index 4ee9f69..1bd0142 100644 --- a/generic/tkImgPhoto.c +++ b/generic/tkImgPhoto.c @@ -1540,7 +1540,11 @@ ParseSubcommandOptions( */ if (!(allowedOptions & bit)) { - goto unknownOrAmbiguousOption; + if (optPtr->name != NULL) { + goto unknownOrAmbiguousOption; + } + optPtr->name = objv[index]; + continue; } /* |