summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-01-17 09:11:20 +0100
committerSergei Golubchik <sergii@pisem.net>2012-01-17 09:11:20 +0100
commit1433621c14e480dbedf3d7ea2b4885cff94bc6e5 (patch)
tree1c7e1a241c115c731fc91debcdc6fa714c931a7a /libmysql
parent8b278b44154009168e4bf7b377f5b21159c5dfb4 (diff)
downloadmariadb-git-1433621c14e480dbedf3d7ea2b4885cff94bc6e5.tar.gz
fixes for non-debug builds (CMAKE_BUILD_TYPE=Release or RelWithDebInfo)
client/CMakeLists.txt: 1. -rdynamic is a linker flag. 2. it should be used in all builds, not debug only libmysql/get_password.c: prefer a standard function, when possible (otherwise a plugin will need to load it from the client)
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/get_password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysql/get_password.c b/libmysql/get_password.c
index dc1a29f7935..c3428dd2838 100644
--- a/libmysql/get_password.c
+++ b/libmysql/get_password.c
@@ -157,7 +157,7 @@ void get_tty_password_buff(const char *opt_message, char *buff, size_t buflen)
passbuff = getpass(opt_message ? opt_message : "Enter password: ");
/* copy the password to buff and clear original (static) buffer */
- strnmov(buff, passbuff, buflen - 1);
+ strncpy(buff, passbuff, buflen - 1);
#ifdef _PASSWORD_LEN
memset(passbuff, 0, _PASSWORD_LEN);
#endif