summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Lange <k@dakko.us>2011-12-04 04:05:52 -0600
committerKevin Lange <k@dakko.us>2011-12-04 04:05:52 -0600
commitab1fc8c49a073ba02bb7ac96c09bacb3d1ff93c3 (patch)
treea1e6d6e73cbce6e94ed34fd9ecb36495c24f422a
parent0efd68d3f0bbf1d5fd660b43ca6f0354b6e435fd (diff)
downloadnyancat-ab1fc8c49a073ba02bb7ac96c09bacb3d1ff93c3.tar.gz
[minor]
Diffstat (limited to '')
-rw-r--r--src/nyancat.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/nyancat.c b/src/nyancat.c
index 5f4c702..853cad0 100644
--- a/src/nyancat.c
+++ b/src/nyancat.c
@@ -90,7 +90,10 @@ jmp_buf environment;
/*
* I refuse to include libm to keep this low
* on external dependencies.
- * */
+ *
+ * Count the number of digits in a number for
+ * use with string output.
+ */
int digits(int val) {
int d = 1, c;
if (val >= 0) for (c = 10; c <= val; c *= 10) d++;
@@ -100,7 +103,7 @@ int digits(int val) {
/*
* These values crop the animation, as we have a full 64x64 stored,
- * but we only want to display 80x24.
+ * but we only want to display 40x24 (double width).
*/
#define MIN_ROW 20
#define MAX_ROW 43
@@ -219,7 +222,7 @@ int main(int argc, char ** argv) {
/* I have a bad habit of being very C99, so this may not be everything */
/* The default terminal is ANSI */
- char term[1024] = {'a','n','s','i'};
+ char term[1024] = {'a','n','s','i', 0};
int k, ttype;
uint32_t option = 0, done = 0, sb_mode = 0, do_echo = 0;
/* Various pieces for the telnet communication */
e75&follow=1'>Import upstream version 0.11.0~svn1165Jonathan McCrohan6-166/+495 2011-12-25Import upstream version 0.11.0~svn1164Jonathan McCrohan11-162/+315 2011-12-25Update libmysqlclient-dev virtual package in build-depends.Jonathan McCrohan1-1/+1 2011-08-31Import upstream version 0.11.0~svn1159Jonathan McCrohan4-5/+5 2011-08-30update debian/changelogReinhard Tartler1-1/+4 2011-08-28* New upstream snapshotJonathan McCrohan2-4/+11 2011-08-26Import upstream version 0.11.0~svn1158Reinhard Tartler34-1743/+4490 2011-08-20normalize with wrap-and-sort(1)Reinhard Tartler2-17/+20 2011-08-20Make lcd4linux linux specificReinhard Tartler1-2/+1 2011-04-29add sqlite3-dev to build dependssiretart@tauware.de2-2/+4 2011-04-29mention new co-maintainersiretart@tauware.de1-0/+1 2011-04-29add libdbus-1-dev to build dependssiretart@tauware.de2-1/+3 2011-04-29normalize fields with wrap-and-sort(1)siretart@tauware.de2-18/+20 2011-04-29fix order of calling dh_autoreconf_cleansiretart@tauware.de1-1/+1 2011-04-29Add Uploader details to Debian PackageJonathan McCrohan1-0/+1 2011-04-27Bug fix: "script lcd4linux/init.d/lcd4linux missing dependency onReinhard Tartler2-1/+5 2011-04-27No longer build the mpd module. Closes: #578226Reinhard Tartler1-0/+1 2011-04-27No longer compile against Python. Python 2.6 now links against libssl,Reinhard Tartler2-2/+3