Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
f647b8f0
Commit
f647b8f0
authored
Feb 07, 2014
by
Vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed registration. Fixed possible SIGSEGV in create_print_name
parent
c5333c03
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
loop.c
loop.c
+2
-2
queries.c
queries.c
+3
-0
structures.c
structures.c
+1
-1
No files found.
loop.c
View file @
f647b8f0
...
...
@@ -545,13 +545,13 @@ int loop (void) {
exit
(
EXIT_SUCCESS
);
}
char
*
first_name
;
printf
(
"
N
ame: "
);
printf
(
"
First n
ame: "
);
if
(
net_getline
(
&
first_name
,
&
size
)
==
-
1
)
{
perror
(
"getline()"
);
exit
(
EXIT_FAILURE
);
}
char
*
last_name
;
printf
(
"
N
ame: "
);
printf
(
"
Last n
ame: "
);
if
(
net_getline
(
&
last_name
,
&
size
)
==
-
1
)
{
perror
(
"getline()"
);
exit
(
EXIT_FAILURE
);
...
...
queries.c
View file @
f647b8f0
...
...
@@ -527,6 +527,9 @@ int do_auth_check_phone (const char *user) {
check_phone_result
=
-
1
;
send_query
(
DC_working
,
packet_ptr
-
packet_buffer
,
packet_buffer
,
&
check_phone_methods
,
0
);
net_loop
(
0
,
cr_f
);
check_phone_result
=
-
1
;
send_query
(
DC_working
,
packet_ptr
-
packet_buffer
,
packet_buffer
,
&
check_phone_methods
,
0
);
net_loop
(
0
,
cr_f
);
return
check_phone_result
;
}
/* }}} */
...
...
structures.c
View file @
f647b8f0
...
...
@@ -168,7 +168,7 @@ char *create_print_name (peer_id_t id, const char *a1, const char *a2, const cha
int
cc
=
0
;
while
(
1
)
{
peer_t
*
P
=
peer_lookup_name
(
s
);
if
(
!
P
||
!
cmp_peer_id
(
P
eers
[
i
]
->
id
,
id
))
{
if
(
!
P
||
!
cmp_peer_id
(
P
->
id
,
id
))
{
break
;
}
cc
++
;
...
...
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