From 4f4d5d418a0e060b8c6418995088eeec39b54c35 Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Thu, 7 Mar 2013 19:47:03 -0800 Subject: Reset alarm before setting to 2secs --- src/nyancat.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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++; -- cgit v1.2.3 tr>lcd4linuxJonathan McCrohan
aboutsummaryrefslogtreecommitdiffstats
path: root/CodingStyle (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2008-08-03signed/unsigned mismatchmichael1-3/+3
2008-07-26added command functionsmichux1-2/+130
2008-07-15added IRLCD driver by Jean-Philippe Civademichael10-5/+467
2008-07-15'autoreconf -f -i' run & config.rpath addedmichael8-370/+1617