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
a1b053aa
Commit
a1b053aa
authored
Jan 07, 2013
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Plain Diff
Merge of patch for Bug#16066243 from mysql-5.1.
parents
fd6d22ef
fcfc9de8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
mysys/mf_pack.c
mysys/mf_pack.c
+5
-4
mysys/my_lib.c
mysys/my_lib.c
+3
-2
No files found.
mysys/mf_pack.c
View file @
a1b053aa
/* Copyright (c) 2000, 201
1
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -11,7 +11,8 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "mysys_priv.h"
#include <m_string.h>
...
...
@@ -451,10 +452,10 @@ char *intern_filename(char *to, const char *from)
char
buff
[
FN_REFLEN
];
if
(
from
==
to
)
{
/* Dirname may destroy from */
strmov
(
buff
,
from
);
(
void
)
strnmov
(
buff
,
from
,
FN_REFLEN
);
from
=
buff
;
}
length
=
dirname_part
(
to
,
from
,
&
to_length
);
/* Copy dirname & fix chars */
(
void
)
str
mov
(
to
+
to_length
,
from
+
length
);
(
void
)
str
nmov
(
to
+
to_length
,
from
+
length
,
FN_REFLEN
-
to_
length
);
return
(
to
);
}
/* intern_filename */
mysys/my_lib.c
View file @
a1b053aa
/* Copyright (c) 2000, 201
1
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -11,7 +11,8 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/* TODO: check for overun of memory for names. */
...
...
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