2004-09-03  Not Zed  <NotZed@Ximian.com>

        ** See bug #64420.

        * lib/e-pkcs12.c (prompt_for_password): set the outptr after we've
        actually got a pointer for it allocated.

svn path=/trunk/; revision=27139
This commit is contained in:
Not Zed
2004-09-04 02:54:49 +00:00
committed by Michael Zucci
parent 2bea41eff4
commit 98820c8115
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2004-09-03 Not Zed <NotZed@Ximian.com>
** See bug #64420.
* lib/e-pkcs12.c (prompt_for_password): set the outptr after we've
actually got a pointer for it allocated.
2004-08-16 Not Zed <NotZed@Ximian.com>
** See bug #62963.

View File

@ -224,11 +224,12 @@ prompt_for_password (char *title, char *prompt, SECItem *pwd)
if (passwd) {
size_t len = strlen (passwd);
const char *inptr = passwd;
char *outptr = pwd->data;
char *outptr;
gunichar2 c;
SECITEM_AllocItem(NULL, pwd, sizeof (gunichar2) * (len + 1));
outptr = pwd->data;
while (inptr && (c = (gunichar2) (g_utf8_get_char (inptr) & 0xffff))) {
inptr = g_utf8_next_char (inptr);
c = GUINT16_TO_BE (c);