Fixes the bug #17 dtsession can't validate passwords longer than 8 characters when the session is locked
This commit is contained in:
committed by
Jon Trulson
parent
23e62e5782
commit
cd82567977
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user