Fixes the bug #17 dtsession can't validate passwords longer than 8 characters when the session is locked

This commit is contained in:
Eugene Doudine
2014-03-23 07:32:02 +02:00
committed by Jon Trulson
parent 23e62e5782
commit cd82567977
2 changed files with 44 additions and 45 deletions

View File

@@ -1686,9 +1686,13 @@ UpdatePasswdField(
int numChars )
{
int i, index;
char passwdMessage[25];
char *passwdMessage = XtMalloc(numChars + 1);
XmString tmpString;
if (!passwdMessage) {
PrintErrnoError(DtError, smNLS.cantMallocErrorString);
return;
}
if(numChars > 0)
{
@@ -1708,7 +1712,7 @@ UpdatePasswdField(
}
tmpString = XmStringCreateLocalized (passwdMessage);
XtFree(passwdMessage);
/*
* Set the index for the indLabel widget
*/