Fix alarm bell symbols
There are three string literals in the code where rather than having the usual \a escape sequence to represent an alert character, the literal character was inserted, this makes it impractical to edit the lines in most text editors. So they have been replaced with the more typical escape sequence.
This commit is contained in:
parent
1ed5ce8edf
commit
24e4896584
|
@ -861,7 +861,7 @@ char *host;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
fprintf(ttyf,
|
fprintf(ttyf,
|
||||||
"\r\nWARNING:\r\nYou will be logged out in %d minute%s when your %s limit expires.\r\n",
|
"\a\r\nWARNING:\r\nYou will be logged out in %d minute%s when your %s limit expires.\r\n",
|
||||||
time_remaining, time_remaining == 1 ? "" : "s", limit_names[limit_type]);
|
time_remaining, time_remaining == 1 ? "" : "s", limit_names[limit_type]);
|
||||||
fclose(ttyf);
|
fclose(ttyf);
|
||||||
}
|
}
|
||||||
|
@ -1144,10 +1144,10 @@ int tty;
|
||||||
} else {
|
} else {
|
||||||
if (limit_type == NOLOGINMSG)
|
if (limit_type == NOLOGINMSG)
|
||||||
sprintf(msgbuf,
|
sprintf(msgbuf,
|
||||||
"\r\n\r\nLogins not allowed at this time. Please try again later.\r\n");
|
"\a\r\n\r\nLogins not allowed at this time. Please try again later.\r\n");
|
||||||
else
|
else
|
||||||
sprintf(msgbuf,
|
sprintf(msgbuf,
|
||||||
"\r\n\r\nYou have exceeded your %s time limit. Logging you off now.\r\n\r\n",
|
"\a\r\n\r\nYou have exceeded your %s time limit. Logging you off now.\r\n\r\n\a",
|
||||||
limit_names[limit_type]);
|
limit_names[limit_type]);
|
||||||
write(tty, msgbuf, strlen(msgbuf));
|
write(tty, msgbuf, strlen(msgbuf));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue