summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorericm <ericm>2000-01-31 18:38:26 (GMT)
committerericm <ericm>2000-01-31 18:38:26 (GMT)
commit8394d6ab5f6cab66dd60e433d1d6bb8c20c94d8a (patch)
treefd50f492a04b567b1274f8db792b071750fcc038 /generic
parentbaf864907899ed9ca9f2ceb60cdc3f56d748719b (diff)
downloadtk-8394d6ab5f6cab66dd60e433d1d6bb8c20c94d8a.zip
tk-8394d6ab5f6cab66dd60e433d1d6bb8c20c94d8a.tar.gz
tk-8394d6ab5f6cab66dd60e433d1d6bb8c20c94d8a.tar.bz2
Fix for bug #4103.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkImgPhoto.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c
index bad36fc..33fc954 100644
--- a/generic/tkImgPhoto.c
+++ b/generic/tkImgPhoto.c
@@ -15,7 +15,7 @@
* Department of Computer Science,
* Australian National University.
*
- * RCS: @(#) $Id: tkImgPhoto.c,v 1.15 2000/01/27 01:28:37 ericm Exp $
+ * RCS: @(#) $Id: tkImgPhoto.c,v 1.16 2000/01/31 18:38:26 ericm Exp $
*/
#include "tkInt.h"
@@ -3556,11 +3556,9 @@ MatchStringFormat(interp, data, formatObj, imageFormatPtr,
ThreadSpecificData *tsdPtr = (ThreadSpecificData *)
Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData));
char *formatString = NULL;
- int len;
if (formatObj) {
- formatString = Tcl_GetByteArrayFromObj(formatObj, &len);
- /*Tcl_GetString(formatObj);*/
+ formatString = Tcl_GetString(formatObj);
}
/*