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
9bf11e04
Commit
9bf11e04
authored
Jan 15, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1
into bar.intranet.mysql.r18.ru:/usr/home/bar/mysql-4.1
parents
9b204ccf
96301bfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
mysys/charset.c
mysys/charset.c
+7
-4
No files found.
mysys/charset.c
View file @
9bf11e04
...
...
@@ -357,7 +357,7 @@ static int add_collation(CHARSET_INFO *cs)
}
#define M
AX_BUF 1024*16
#define M
Y_MAX_ALLOWED_BUF 1024*1024
#define MY_CHARSET_INDEX "Index.xml"
const
char
*
charsets_dir
=
NULL
;
...
...
@@ -369,16 +369,19 @@ static my_bool my_read_charset_file(const char *filename, myf myflags)
char
*
buf
;
int
fd
;
uint
len
;
MY_STAT
stat_info
;
if
(
!
(
buf
=
(
char
*
)
my_malloc
(
MAX_BUF
,
myflags
)))
return
FALSE
;
if
(
!
my_stat
(
filename
,
&
stat_info
,
MYF
(
MY_WME
))
||
((
len
=
(
uint
)
stat_info
.
st_size
)
>
MY_MAX_ALLOWED_BUF
)
||
!
(
buf
=
(
char
*
)
my_malloc
(
len
,
myflags
)))
return
TRUE
;
if
((
fd
=
my_open
(
filename
,
O_RDONLY
,
myflags
))
<
0
)
{
my_free
(
buf
,
myflags
);
return
TRUE
;
}
len
=
read
(
fd
,
buf
,
MAX_BUF
);
len
=
read
(
fd
,
buf
,
len
);
my_close
(
fd
,
myflags
);
if
(
my_parse_charset_xml
(
buf
,
len
,
add_collation
))
...
...
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