summaryrefslogtreecommitdiffstats
path: root/generic/tkSelect.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-04-17 14:36:49 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-04-17 14:36:49 (GMT)
commit71807b8a629a1628286b5dd2858f0e3df2ada2fa (patch)
tree086a9c3b5d584ff0ea58372ca53ae3a0cdba445e /generic/tkSelect.c
parentc86de1b46e1f322ca4ad49bfda61f8101314fb41 (diff)
downloadtk-71807b8a629a1628286b5dd2858f0e3df2ada2fa.zip
tk-71807b8a629a1628286b5dd2858f0e3df2ada2fa.tar.gz
tk-71807b8a629a1628286b5dd2858f0e3df2ada2fa.tar.bz2
Eliminate use of (VOID*) casts when calling memset or memcpy.
Diffstat (limited to 'generic/tkSelect.c')
-rw-r--r--generic/tkSelect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkSelect.c b/generic/tkSelect.c
index c35a47c..dca3d1c 100644
--- a/generic/tkSelect.c
+++ b/generic/tkSelect.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkSelect.c,v 1.19 2005/11/22 11:16:25 dkf Exp $
+ * RCS: @(#) $Id: tkSelect.c,v 1.20 2007/04/17 14:36:49 dkf Exp $
*/
#include "tkInt.h"
@@ -1387,7 +1387,7 @@ HandleTclCommand(
objPtr = Tcl_GetObjResult(interp);
string = Tcl_GetStringFromObj(objPtr, &length);
count = (length > maxBytes) ? maxBytes : length;
- memcpy((VOID *) buffer, (VOID *) string, (size_t) count);
+ memcpy(buffer, string, (size_t) count);
buffer[count] = '\0';
/*