diff options
author | ericm <ericm> | 2000-01-31 18:38:26 (GMT) |
---|---|---|
committer | ericm <ericm> | 2000-01-31 18:38:26 (GMT) |
commit | 8394d6ab5f6cab66dd60e433d1d6bb8c20c94d8a (patch) | |
tree | fd50f492a04b567b1274f8db792b071750fcc038 | |
parent | baf864907899ed9ca9f2ceb60cdc3f56d748719b (diff) | |
download | tk-8394d6ab5f6cab66dd60e433d1d6bb8c20c94d8a.zip tk-8394d6ab5f6cab66dd60e433d1d6bb8c20c94d8a.tar.gz tk-8394d6ab5f6cab66dd60e433d1d6bb8c20c94d8a.tar.bz2 |
Fix for bug #4103.
-rw-r--r-- | generic/tkImgPhoto.c | 6 |
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); } /* |