diff options
author | hobbs <hobbs> | 2002-09-02 19:13:47 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2002-09-02 19:13:47 (GMT) |
commit | 738bde67c694b79283d0b5a3fb97e70496bb35d0 (patch) | |
tree | 242c749b03108ef02eeae8bcbe2ee29dc140e997 /generic | |
parent | a6cdd07813ee8f86bd2c8c3d6f05b84133f42374 (diff) | |
download | tk-738bde67c694b79283d0b5a3fb97e70496bb35d0.zip tk-738bde67c694b79283d0b5a3fb97e70496bb35d0.tar.gz tk-738bde67c694b79283d0b5a3fb97e70496bb35d0.tar.bz2 |
added size_t cast to prevent warning
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkFont.c | 4 |
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; } |