summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Lange <kevin.lange@dakko.us>2013-03-07 19:47:03 -0800
committerKevin Lange <kevin.lange@dakko.us>2013-03-07 19:47:03 -0800
commit4f4d5d418a0e060b8c6418995088eeec39b54c35 (patch)
treea2bd8af8236b49c8051c31b99265282b1116e472
parent634c7d3e97c5bda9635815a55eb7294c3eb0ac62 (diff)
downloadnyancat-4f4d5d418a0e060b8c6418995088eeec39b54c35.tar.gz
Reset alarm before setting to 2secs
-rw-r--r--src/nyancat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nyancat.c b/src/nyancat.c
index 2137849..cef7034 100644
--- a/src/nyancat.c
+++ b/src/nyancat.c
@@ -443,6 +443,7 @@ int main(int argc, char ** argv) {
if (sb[0] == TTYPE) {
/* This was a response to the TTYPE command, meaning
* that this should be a terminal type */
+ alarm(0);
alarm(2);
strcpy(term, &sb[2]);
done++;
@@ -450,6 +451,7 @@ int main(int argc, char ** argv) {
else if (sb[0] == NAWS) {
/* This was a response to the NAWS command, meaning
* that this should be a window size */
+ alarm(0);
alarm(2);
terminal_width = sb[2];
done++;
08b7bb278cca&follow=1'>Fix b0rked symbol file.Jonathan McCrohan1-1/+1 2012-01-29Add symbolsJonathan McCrohan3-1/+739 2012-01-26add examples properlyJonathan McCrohan1-0/+2 2012-01-26Update changelogJonathan McCrohan1-3/+6 2012-01-26fix typoJonathan McCrohan1-1/+1 2012-01-26fix accidental description changesJonathan McCrohan1-2/+2 2012-01-26more fucking around to please lintianJonathan McCrohan1-5/+2 2012-01-25Linitan fixesJonathan McCrohan2-3/+2 2012-01-25Split out debug packagesJonathan McCrohan2-1/+6 2011-12-31Fix debian/rulesJonathan McCrohan1-1/+1 2011-12-31Remove shlibsJonathan McCrohan1-2/+0 2011-12-31Remove NMU from changelogJonathan McCrohan1-1/+0 2011-12-31Lintian FixesJonathan McCrohan1-2/+4 2011-12-31Remove Makefile patchJonathan McCrohan1-1/+0 2011-12-31Update MakefilesJonathan McCrohan10-248/+8222 2011-12-31Updated makefilesJonathan McCrohan1-0/+1