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
cede4dd4
Commit
cede4dd4
authored
Apr 14, 1992
by
Per Cederqvist
Browse files
Fixed trivial bug in create_oldstyle_username.
parent
b743e8a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/session.c
View file @
cede4dd4
/*
* $Id: session.c,v 0.1
1
1992/04/14 1
5:28:10
ceder Exp $
* $Id: session.c,v 0.1
2
1992/04/14 1
7:18:33
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,7 +28,7 @@
* Session control and miscellaneous.
*/
static
char
*
rcsid
=
"$Id: session.c,v 0.1
1
1992/04/14 1
5:28:10
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: session.c,v 0.1
2
1992/04/14 1
7:18:33
ceder Exp $"
;
#include
<time.h>
...
...
@@ -57,13 +57,13 @@ static void
create_oldstyle_username
(
String
*
result
,
Connection
*
connection
)
{
if
(
s_strcpy
(
result
,
c
ptr
->
username
)
!=
OK
)
if
(
s_strcpy
(
result
,
c
onnection
->
username
)
!=
OK
)
restart_kom
(
"create_oldstyle_username(): strcpy
\n
"
);
if
(
s_strcat
(
result
,
s_fcrea_str
((
const
unsigned
char
*
)
"@"
))
!=
OK
)
restart_kom
(
"create_oldstyle_username: s_strcat
\n
"
);
if
(
s_strcat
(
result
,
c
ptr
->
hostname
)
!=
OK
)
if
(
s_strcat
(
result
,
c
onnection
->
hostname
)
!=
OK
)
restart_kom
(
"prot_a_parse_packet: s_strcat II
\n
"
);
}
...
...
Write
Preview
Supports
Markdown
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