Unbreak
This commit is contained in:
parent
92657d3cbd
commit
a4578a3c98
@ -72,9 +72,10 @@ parse_lt(const char * str)
|
|||||||
char buf[64];
|
char buf[64];
|
||||||
|
|
||||||
/* Make local copy and force lowercase to simplify parsing */
|
/* Make local copy and force lowercase to simplify parsing */
|
||||||
p = strlcpy(buf, str, sizeof buf);
|
strlcpy(buf, str, sizeof buf);
|
||||||
for (i = 0; buf[i]; i++)
|
for (i = 0; buf[i]; i++)
|
||||||
buf[i] = (char)tolower(buf[i]);
|
buf[i] = (char)tolower(buf[i]);
|
||||||
|
p = buf;
|
||||||
|
|
||||||
while (isalpha(*p)) {
|
while (isalpha(*p)) {
|
||||||
|
|
||||||
@ -157,4 +158,3 @@ in_lts(const login_time_t * ltm, time_t * t)
|
|||||||
{
|
{
|
||||||
return in_ltms(ltm, localtime(t), t);
|
return in_ltms(ltm, localtime(t), t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user