From 2b17f66a25f1e9cf6e6a072736ea4459eefcc2b8 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 13 Aug 2004 11:36:48 +0000 Subject: [PATCH] Cast to unsigned char to prevent assert in MS. Studio .NET --- client/client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/client.c b/client/client.c index f0cab9b..6b86e8c 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.246 2004-08-11 11:44:30 adam Exp $ + * $Id: client.c,v 1.247 2004-08-13 11:36:48 adam Exp $ */ #include @@ -3212,7 +3212,7 @@ int cmd_register_oid(const char* args) { name = oid_str; val = 0; - while (isdigit (*name)) + while (isdigit (*(unsigned char *) name)) { val = val*10 + (*name - '0'); name++; @@ -3972,11 +3972,11 @@ void process_cmd_line(char* line) /* removed tailing spaces from the arg command */ { - unsigned char* p = arg; + char* p = arg; char* lastnonspace=NULL; for(;*p; ++p) { - if(!isspace(*p)) { + if(!isspace(*(unsigned char *) p)) { lastnonspace = p; } } -- 1.7.10.4