summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2002-06-11 08:25:49 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2002-06-11 08:25:49 (GMT)
commitd4a5d95942188d8edd7345c4ac6e6b3482387bd3 (patch)
treeb9bd3dfad040eb23fbe06d6041db57dc1c289a63
parent8f1d90728fc1174621225a05b99e796e5b98853c (diff)
downloadtk-d4a5d95942188d8edd7345c4ac6e6b3482387bd3.zip
tk-d4a5d95942188d8edd7345c4ac6e6b3482387bd3.tar.gz
tk-d4a5d95942188d8edd7345c4ac6e6b3482387bd3.tar.bz2
D'oh! Next time, I should at least check I've got the variable names right.
-rw-r--r--win/tkWinCursor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinCursor.c b/win/tkWinCursor.c
index da5ce4b..a7e5542 100644
--- a/win/tkWinCursor.c
+++ b/win/tkWinCursor.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinCursor.c,v 1.6 2002/06/06 20:41:54 dkf Exp $
+ * RCS: @(#) $Id: tkWinCursor.c,v 1.7 2002/06/11 08:25:49 dkf Exp $
*/
#include "tkWinInt.h"
@@ -133,14 +133,14 @@ TkGetCursorByName(interp, tkwin, string)
*/
for (namePtr = cursorNames; namePtr->name != NULL; namePtr++) {
- if (strcmp(namePtr->name, name[0]) == 0) {
+ if (strcmp(namePtr->name, argv[0]) == 0) {
/*
* It is either a system cursor or one of ours!
*/
cursorPtr->winCursor = LoadCursor(NULL, namePtr->id);
if (cursorPtr->winCursor == NULL) {
cursorPtr->winCursor =
- LoadCursor(Tk_GetHINSTANCE(), name[0]);
+ LoadCursor(Tk_GetHINSTANCE(), argv[0]);
cursorPtr->system = 0;
} else {
cursorPtr->system = 1;