Commit 1a5d9c37 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(prot_a_parse_long): Removed the base argument of s_strtol.

(prot_a_parse_string): Ditto.
parent 11247069
/*
* $Id: prot-a-parse.c,v 0.52 2002/03/29 22:29:45 ceder Exp $
* $Id: prot-a-parse.c,v 0.53 2002/08/10 19:57:22 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -108,7 +108,7 @@ prot_a_parse_long(Connection *client)
long res;
token = prot_a_get_token(client);
res = s_strtol(token, &end, PROTOCOL_NUMBER_BASE);
res = s_strtol(token, &end);
if (end != s_strlen(token))
longjmp(parse_env, ISC_PROTOCOL_ERR);
......@@ -335,7 +335,7 @@ prot_a_parse_string(Connection *client,
client_len = s_strtol(s_fsubstr(client->unparsed,
client->first_to_parse,
END_OF_STRING),
&hptr, PROTOCOL_NUMBER_BASE);
&hptr);
if ( hptr == -1
|| client->first_to_parse + hptr
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment