diff --git a/xkeygrab.c b/xkeygrab.c index 8810e5d..dbb21df 100644 --- a/xkeygrab.c +++ b/xkeygrab.c @@ -107,6 +107,10 @@ main(int argc, char *argv[]) } break; } + if (obuflen == sizeof(obuf)) { + (void)write(STDOUT_FILENO, obuf, obuflen); + obuflen = 0; + } } } }