From: Adam Dickmeiss Date: Wed, 11 Aug 2004 11:44:30 +0000 (+0000) Subject: Use unsigned char pointers to prevent assert for 8-bit on MS .NET X-Git-Tag: YAZ.2.0.23.1~1 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=8fa3d0c0967fd6db5c7a2b2ffc504cb48407a586;p=yaz-moved-to-github.git Use unsigned char pointers to prevent assert for 8-bit on MS .NET --- diff --git a/client/client.c b/client/client.c index 09ab220..f0cab9b 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: client.c,v 1.245 2004-07-30 08:37:52 adam Exp $ + * $Id: client.c,v 1.246 2004-08-11 11:44:30 adam Exp $ */ #include @@ -3972,7 +3972,7 @@ void process_cmd_line(char* line) /* removed tailing spaces from the arg command */ { - char* p = arg; + unsigned char* p = arg; char* lastnonspace=NULL; for(;*p; ++p) { diff --git a/src/ccltoken.c b/src/ccltoken.c index 70bc47d..ae8b4c0 100644 --- a/src/ccltoken.c +++ b/src/ccltoken.c @@ -44,7 +44,7 @@ /* CCL - lexical analysis * Europagate, 1995 * - * $Id: ccltoken.c,v 1.1 2003-10-27 12:21:30 adam Exp $ + * $Id: ccltoken.c,v 1.2 2004-08-11 11:44:30 adam Exp $ * * Old Europagate Log: * @@ -201,7 +201,7 @@ struct ccl_token *ccl_token_simple (const char *command) struct ccl_token *ccl_parser_tokenize (CCL_parser cclp, const char *command) { const char *aliases; - const char *cp = command; + const unsigned char *cp = command; struct ccl_token *first = NULL; struct ccl_token *last = NULL;