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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ccc97ac1
Commit
ccc97ac1
authored
Aug 18, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use my_vsnprintf() just in case
bug#4925
parent
32f905f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
sql/net_pkg.cc
sql/net_pkg.cc
+3
-1
No files found.
sql/net_pkg.cc
View file @
ccc97ac1
...
@@ -124,7 +124,9 @@ net_printf(NET *net, uint errcode, ...)
...
@@ -124,7 +124,9 @@ net_printf(NET *net, uint errcode, ...)
}
}
offset
=
net
->
return_errno
?
2
:
0
;
offset
=
net
->
return_errno
?
2
:
0
;
text_pos
=
(
char
*
)
net
->
buff
+
head_length
+
offset
+
1
;
text_pos
=
(
char
*
)
net
->
buff
+
head_length
+
offset
+
1
;
(
void
)
vsprintf
(
my_const_cast
(
char
*
)
(
text_pos
),
format
,
args
);
(
void
)
my_vsnprintf
(
my_const_cast
(
char
*
)
(
text_pos
),
(
char
*
)
net
->
buff_end
-
text_pos
,
format
,
args
);
length
=
(
uint
)
strlen
((
char
*
)
text_pos
);
length
=
(
uint
)
strlen
((
char
*
)
text_pos
);
if
(
length
>=
sizeof
(
net
->
last_error
))
if
(
length
>=
sizeof
(
net
->
last_error
))
length
=
sizeof
(
net
->
last_error
)
-
1
;
/* purecov: inspected */
length
=
sizeof
(
net
->
last_error
)
-
1
;
/* purecov: inspected */
...
...
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