summaryrefslogtreecommitdiffstats
path: root/generic/tkStubLib.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-09-18 16:12:17 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-09-18 16:12:17 (GMT)
commit44599189a7685027323fc4cd33c48918d5716ee0 (patch)
tree669a623378b5e9d5ce87aa79a2d14a85a0e67b38 /generic/tkStubLib.c
parent9796d2d3945b437083d79e6c8e2333aec0b3f577 (diff)
downloadtk-44599189a7685027323fc4cd33c48918d5716ee0.zip
tk-44599189a7685027323fc4cd33c48918d5716ee0.tar.gz
tk-44599189a7685027323fc4cd33c48918d5716ee0.tar.bz2
* generic/tkStubLib.c: Remove C library calls from Tk_InitStubs()
* win/makefile.vc: so that we don't need the C library linked in to libtkStub.
Diffstat (limited to 'generic/tkStubLib.c')
-rw-r--r--generic/tkStubLib.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/generic/tkStubLib.c b/generic/tkStubLib.c
index 6c884c5..aaeba9f 100644
--- a/generic/tkStubLib.c
+++ b/generic/tkStubLib.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: tkStubLib.c,v 1.16 2007/09/17 14:58:04 dgp Exp $
+ * RCS: @(#) $Id: tkStubLib.c,v 1.17 2007/09/18 16:12:19 dgp Exp $
*/
/*
@@ -98,7 +98,13 @@ Tk_InitStubs(
count += !isdigit(*p++);
}
if (count == 1) {
- if (0 != strncmp(version, actualVersion, strlen(version))) {
+ CONST char *q = actualVersion;
+
+ p = version;
+ while (*p && (*p == *q)) {
+ p++; q++;
+ }
+ if (*p) {
return NULL;
}
} else {