~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/get_password.c

  • Committer: Brian Aker
  • Date: 2008-08-09 21:43:24 UTC
  • mfrom: (279.1.4 codestyle)
  • Revision ID: brian@tangent.org-20080809214324-jy2c15bx49naddsf
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
  passbuff = getpass(opt_message ? opt_message : "Enter password: ");
163
163
 
164
164
  /* copy the password to buff and clear original (static) buffer */
165
 
  strnmov(buff, passbuff, sizeof(buff) - 1);
 
165
  stpncpy(buff, passbuff, sizeof(buff) - 1);
166
166
#   ifdef _PASSWORD_LEN
167
167
  memset(passbuff, 0, _PASSWORD_LEN);
168
168
#   endif