From d4a5d95942188d8edd7345c4ac6e6b3482387bd3 Mon Sep 17 00:00:00 2001 From: dkf Date: Tue, 11 Jun 2002 08:25:49 +0000 Subject: D'oh! Next time, I should at least check I've got the variable names right. --- win/tkWinCursor.c | 6 +++--- 1 file 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; -- cgit v0.12