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
1582aafc
Commit
1582aafc
authored
Nov 10, 2002
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
my_snprintf_ucs2 bug fix
parent
abd34271
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
strings/ctype-utf8.c
strings/ctype-utf8.c
+3
-3
No files found.
strings/ctype-utf8.c
View file @
1582aafc
...
...
@@ -2382,7 +2382,7 @@ static int my_vsnprintf_ucs2(char *dst, uint n, const char* fmt, va_list ap)
plen
=
(
uint
)
strlen
(
par
);
if
(
left_len
<=
plen
*
2
)
plen
=
left_len
/
2
-
1
;
dst
=
strnmov
(
dst
,
par
,
plen
);
for
(
;
plen
;
plen
--
,
dst
++
,
par
++
)
{
dst
[
0
]
=
'\0'
;
...
...
@@ -2400,9 +2400,9 @@ static int my_vsnprintf_ucs2(char *dst, uint n, const char* fmt, va_list ap)
break
;
iarg
=
va_arg
(
ap
,
int
);
if
(
*
fmt
==
'd'
)
dst
=
int10_to_str
((
long
)
iarg
,
nbuf
,
-
10
);
int10_to_str
((
long
)
iarg
,
nbuf
,
-
10
);
else
dst
=
int10_to_str
((
long
)
(
uint
)
iarg
,
nbuf
,
10
);
int10_to_str
((
long
)
(
uint
)
iarg
,
nbuf
,
10
);
for
(;
pbuf
[
0
];
pbuf
++
)
{
...
...
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