Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
1a5d9c37
Commit
1a5d9c37
authored
Aug 10, 2002
by
Per Cederqvist
Browse files
(prot_a_parse_long): Removed the base argument of s_strtol.
(prot_a_parse_string): Ditto.
parent
11247069
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/prot-a-parse.c
View file @
1a5d9c37
/*
* $Id: prot-a-parse.c,v 0.5
2
2002/0
3/29 22:29:45
ceder Exp $
* $Id: prot-a-parse.c,v 0.5
3
2002/0
8/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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment