diff options
Diffstat (limited to 'WWW/Library/Implementation/HTAssoc.c')
-rw-r--r-- | WWW/Library/Implementation/HTAssoc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/WWW/Library/Implementation/HTAssoc.c b/WWW/Library/Implementation/HTAssoc.c index 112f70a9..64a7d1aa 100644 --- a/WWW/Library/Implementation/HTAssoc.c +++ b/WWW/Library/Implementation/HTAssoc.c @@ -1,5 +1,7 @@ - -/* MODULE HTAssoc.c +/* + * $LynxId: HTAssoc.c,v 1.9 2009/01/03 01:59:16 tom Exp $ + * + * MODULE HTAssoc.c * ASSOCIATION LIST FOR STORING NAME-VALUE PAIRS. * NAMES NOT CASE SENSITIVE, AND ONLY COMMON LENGTH * IS CHECKED (allows abbreviations; well, length is @@ -73,7 +75,7 @@ char *HTAssocList_lookup(HTAssocList *alist, HTAssoc *assoc; while (NULL != (assoc = (HTAssoc *) HTList_nextObject(cur))) { - if (!strncasecomp(assoc->name, name, strlen(name))) + if (!strncasecomp(assoc->name, name, (int) strlen(name))) return assoc->value; } return NULL; |