diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-04-04 22:08:55 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-04-04 22:08:55 (GMT) |
commit | 13aa1a63c6190d65ae8c2ed113c48b4f531d1867 (patch) | |
tree | 15b914731e4be30435c5832103c3ba96c9ccf91b /generic/tkFont.c | |
parent | 2eb951782866ecd73369684de756732a468a79e1 (diff) | |
download | tk-13aa1a63c6190d65ae8c2ed113c48b4f531d1867.zip tk-13aa1a63c6190d65ae8c2ed113c48b4f531d1867.tar.gz tk-13aa1a63c6190d65ae8c2ed113c48b4f531d1867.tar.bz2 |
Remove a few unnecessary (size_t) type-casts, and add a "const"
Diffstat (limited to 'generic/tkFont.c')
-rw-r--r-- | generic/tkFont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkFont.c b/generic/tkFont.c index 31b05b9..cc7861f 100644 --- a/generic/tkFont.c +++ b/generic/tkFont.c @@ -4250,7 +4250,7 @@ TkFontGetFirstTextLayout( } chunkPtr = layoutPtr->chunks; numBytesInChunk = chunkPtr->numBytes; - strncpy(dst, chunkPtr->start, (size_t) numBytesInChunk); + strncpy(dst, chunkPtr->start, numBytesInChunk); *font = layoutPtr->tkfont; return numBytesInChunk; } |