summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-09-02 19:13:47 (GMT)
committerhobbs <hobbs>2002-09-02 19:13:47 (GMT)
commitcb221c592034a688a0749f2c28d6f5612777fea8 (patch)
tree242c749b03108ef02eeae8bcbe2ee29dc140e997
parent3350e65b12e49ce648c116de05970f76e4f1771c (diff)
downloadtk-cb221c592034a688a0749f2c28d6f5612777fea8.zip
tk-cb221c592034a688a0749f2c28d6f5612777fea8.tar.gz
tk-cb221c592034a688a0749f2c28d6f5612777fea8.tar.bz2
added size_t cast to prevent warning
-rw-r--r--generic/tkFont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkFont.c b/generic/tkFont.c
index 5c7341c..23f28dc 100644
--- a/generic/tkFont.c
+++ b/generic/tkFont.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkFont.c,v 1.20 2002/08/31 06:12:20 das Exp $
+ * RCS: @(#) $Id: tkFont.c,v 1.21 2002/09/02 19:13:47 hobbs Exp $
*/
#include "tkPort.h"
@@ -3753,7 +3753,7 @@ TkFontGetFirstTextLayout(
}
chunkPtr = layoutPtr->chunks;
numBytesInChunk = chunkPtr->numBytes;
- strncpy(dst, chunkPtr->start, numBytesInChunk);
+ strncpy(dst, chunkPtr->start, (size_t) numBytesInChunk);
*font = layoutPtr->tkfont;
return numBytesInChunk;
}