diff options
author | Nirbhay Choubey <nirbhay.choubey@oracle.com> | 2013-01-07 16:19:06 +0530 |
---|---|---|
committer | Nirbhay Choubey <nirbhay.choubey@oracle.com> | 2013-01-07 16:19:06 +0530 |
commit | 62d7006f0b01407b7b036d4c140d0f8d500c7665 (patch) | |
tree | f1fe7a858a267f79746f52931c9c26a89b9e4e28 /mysys/mf_pack.c | |
parent | d95914b64815aa07e97c745d15eb2e6bc2aecff1 (diff) | |
parent | e7c2ae94dd60be1ea1bac0b3645621e60773bf69 (diff) | |
download | mariadb-git-62d7006f0b01407b7b036d4c140d0f8d500c7665.tar.gz |
Merge of patch for Bug#16066243 from mysql-5.1.
Diffstat (limited to 'mysys/mf_pack.c')
-rw-r--r-- | mysys/mf_pack.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mysys/mf_pack.c b/mysys/mf_pack.c index 18c9a38f0db..7f844db5b9d 100644 --- a/mysys/mf_pack.c +++ b/mysys/mf_pack.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. +/* Copyright (c) 2000, 2013, 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) strmov(to + to_length,from+length); + (void) strnmov(to + to_length, from + length, FN_REFLEN - to_length); return (to); } /* intern_filename */ |