PalmKey rejects special characters in seed
Status: Beta
Brought to you by:
jkf
PalmKey rejects special characters (such as '-') in
the seed.
e.g., One of the server I log into has a '-'(s-foo
say) in its host name. So the seed looks like x-23768.
This seed is not valid per PalmKey but is valid per
ther server.
PalmKey must allow all characters which make for a
legal hostname and by extension legitimate seeds.
Overall, a useful application. Keep up the good work!
Logged In: YES
user_id=132739
This patch fixes the problem:
*** palmkey.c.mod Mon Aug 4 22:26:15 2003
--- palmkey.c Fri Jan 12 02:30:53 2001
***************
*** 469,475 ****
/* Cycle through the field and check for invalid
characters,
displaying an error message if there are any. */
while(*p) {
! if (!((*p >= 'a' && *p <= 'z') || (*p >= 'A' &&
*p <= 'Z') || (*p >= '0' && *p <= '9') || (*p ==
'-'))) {
NonFatalError(InputAlert, InvalidSeed);
return;
}
--- 469,475 ----
/* Cycle through the field and check for invalid
characters,
displaying an error message if there are any. */
while(*p) {
! if (!((*p >= 'a' && *p <= 'z') || (*p >= 'A' &&
*p <= 'Z') || (*p >= '0' && *p <= '9'))) {
NonFatalError(InputAlert, InvalidSeed);
return;
}
Patch to fix rejection of valid seed