projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug #280: make dist must depend on bison. The extra rule
[yaz-moved-to-github.git]
/
src
/
matchstr.c
diff --git
a/src/matchstr.c
b/src/matchstr.c
index
2ec92d8
..
efbc7ef
100644
(file)
--- a/
src/matchstr.c
+++ b/
src/matchstr.c
@@
-1,10
+1,15
@@
/*
/*
- * Copyright (c) 1995-2003, Index Data.
+ * Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
* See the file LICENSE for details.
- * Sebastian Hammer, Adam Dickmeiss
*
*
- * $Id: matchstr.c,v 1.1 2003-10-27 12:21:31 adam Exp $
+ * $Id: matchstr.c,v 1.4 2005-01-15 19:47:14 adam Exp $
*/
*/
+
+/**
+ * \file matchstr.c
+ * \brief Implements loose string matching
+ */
+
#if HAVE_CONFIG_H
#include <config.h>
#endif
#if HAVE_CONFIG_H
#include <config.h>
#endif
@@
-25,8
+30,8
@@
int yaz_matchstr(const char *s1, const char *s2)
{
while (*s1 && *s2)
{
{
while (*s1 && *s2)
{
- char c1 = *s1;
- char c2 = *s2;
+ unsigned char c1 = *s1;
+ unsigned char c2 = *s2;
if (c2 == '?')
return 0;
if (c2 == '?')
return 0;