Skip to content

Commit

Permalink
Merge pull request #2021 from vkoskiv/getty-fix
Browse files Browse the repository at this point in the history
[cmds] Fix off-by-one bug in getty @t command
  • Loading branch information
ghaerr authored Sep 16, 2024
2 parents dc10f66 + 3ca6377 commit e4c2bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elkscmd/sys_utils/getty.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void when(void) {

Result[2] = Result[6] = '-';

for (n=20; n>12; n--)
for (n=20; n>11; n--)
Result[n] = Result[n-1];

Result[11] = Result[20] = '\0';
Expand Down

0 comments on commit e4c2bcb

Please sign in to comment.