diff options
author | monty@hundin.mysql.fi <> | 2001-11-07 00:13:29 +0200 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-11-07 00:13:29 +0200 |
commit | 4c60b4195436182f7d06d5db926e8f60d845271d (patch) | |
tree | 64754ff9c9c94a31f64a96e1a5e3ae60a4a93253 /client/mysqlmanager-pwgen.c | |
parent | 771af387e347412ce4884dcc5dcee6db12c4bfd9 (diff) | |
download | mariadb-git-4c60b4195436182f7d06d5db926e8f60d845271d.tar.gz |
Portability fix
Cleanup typos (like SKIPP -> SKIP)
Diffstat (limited to 'client/mysqlmanager-pwgen.c')
-rw-r--r-- | client/mysqlmanager-pwgen.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/mysqlmanager-pwgen.c b/client/mysqlmanager-pwgen.c index eca9bfa23ea..f0fc5871ca1 100644 --- a/client/mysqlmanager-pwgen.c +++ b/client/mysqlmanager-pwgen.c @@ -112,14 +112,18 @@ void get_pass(char* pw, int len) fclose(fp); while (pw<pw_end) { - *pw++='a'+((uint)*pw % 26); + char tmp= 'a'+((uint)*pw % 26); + *pw++= tmp; } } else { srand(time(NULL)); while (pw<pw_end) - *pw++='a'+((uint)rand() % 26); + { + char tmp= 'a'+((uint)*pw % 26); + *pw++= tmp; + } } *pw_end=0; } |