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
b305a27a
Commit
b305a27a
authored
Mar 01, 2002
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post-merge fixup
parent
aa678312
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
.bzrignore
.bzrignore
+1
-0
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+4
-0
mysys/my_vsnprintf.c
mysys/my_vsnprintf.c
+3
-1
No files found.
.bzrignore
View file @
b305a27a
...
...
@@ -461,3 +461,4 @@ vio/viotest-ssl
Docs/mysql.xml
mysql-test/r/rpl000001.eval
Docs/safe-mysql.xml
mysys/test_vsnprintf
mysql-test/mysql-test-run.sh
View file @
b305a27a
...
...
@@ -161,6 +161,10 @@ MASTER_RUNNING=0
MASTER_MYPORT
=
9306
SLAVE_RUNNING
=
0
SLAVE_MYPORT
=
9307
MYSQL_MANAGER_PORT
=
9305
# needs to be out of the way of slaves
MYSQL_MANAGER_PW_FILE
=
$MYSQL_TEST_DIR
/var/tmp/manager.pwd
MYSQL_MANAGER_LOG
=
$MYSQL_TEST_DIR
/var/log/manager.log
MYSQL_MANAGER_USER
=
root
NO_SLAVE
=
0
USER_TEST
=
...
...
mysys/my_vsnprintf.c
View file @
b305a27a
...
...
@@ -19,6 +19,7 @@
#include <m_string.h>
#include <stdarg.h>
#include <m_ctype.h>
#include <assert.h>
int
my_snprintf
(
char
*
to
,
size_t
n
,
const
char
*
fmt
,
...)
{
...
...
@@ -53,7 +54,7 @@ int my_vsnprintf(char *to, size_t n, const char* fmt, va_list ap)
plen
=
(
uint
)
strlen
(
par
);
if
(
left_len
<=
plen
)
plen
=
left_len
-
1
;
to
=
str
mov
(
to
,
par
);
to
=
str
nmov
(
to
,
par
,
plen
);
continue
;
}
else
if
(
*
fmt
==
'd'
||
*
fmt
==
'u'
)
/* Integer parameter */
...
...
@@ -73,6 +74,7 @@ int my_vsnprintf(char *to, size_t n, const char* fmt, va_list ap)
break
;
*
to
++=
'%'
;
/* % used as % or unknown code */
}
DBUG_ASSERT
(
to
<=
end
);
*
to
=
'\0'
;
/* End of errmessage */
return
(
uint
)
(
to
-
start
);
}
...
...
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