Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
275a9293
Commit
275a9293
authored
Jan 14, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
protect against malicious server trying to crash command-line client :)
parent
5ebcb21f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
client/mysql.cc
client/mysql.cc
+4
-4
No files found.
client/mysql.cc
View file @
275a9293
...
...
@@ -1520,7 +1520,7 @@ You can turn off this feature to get a quicker startup with -A\n\n");
j
=
0
;
while
((
sql_field
=
mysql_fetch_field
(
fields
)))
{
sprintf
(
buf
,
"%
s.%
s"
,
table_row
[
0
],
sql_field
->
name
);
sprintf
(
buf
,
"%
.64s.%.64
s"
,
table_row
[
0
],
sql_field
->
name
);
field_names
[
i
][
j
]
=
strdup_root
(
&
hash_mem_root
,
buf
);
add_word
(
&
ht
,
field_names
[
i
][
j
]);
field_names
[
i
][
num_fields
+
j
]
=
strdup_root
(
&
hash_mem_root
,
...
...
@@ -2526,7 +2526,7 @@ com_connect(String *buffer, char *line)
{
sprintf
(
buff
,
"Connection id: %lu"
,
mysql_thread_id
(
&
mysql
));
put_info
(
buff
,
INFO_INFO
);
sprintf
(
buff
,
"Current database: %s
\n
"
,
sprintf
(
buff
,
"Current database: %
.128
s
\n
"
,
current_db
?
current_db
:
"*** NONE ***"
);
put_info
(
buff
,
INFO_INFO
);
}
...
...
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