diff options
author | hobbs <hobbs> | 2002-09-02 19:13:47 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2002-09-02 19:13:47 (GMT) |
commit | 43c56e1fb3665b16dcbcc2b6ee6c2dce8ae0f5b0 (patch) | |
tree | 242c749b03108ef02eeae8bcbe2ee29dc140e997 /generic | |
parent | 45b0bcc26ee179544aff15227e1e8a417e806499 (diff) | |
download | tk-43c56e1fb3665b16dcbcc2b6ee6c2dce8ae0f5b0.zip tk-43c56e1fb3665b16dcbcc2b6ee6c2dce8ae0f5b0.tar.gz tk-43c56e1fb3665b16dcbcc2b6ee6c2dce8ae0f5b0.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; } |