summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 */
ions'>+1 2007-06-20keypad support completed; new property brightness implementedvolker1-40/+175 2007-06-20maximum value for brightness is 8volker1-2/+2 2007-06-17buttons for X11 driver (thanks to Volker Gering)michael1-8/+49 2007-06-17Apple has no utsbuf.domainname (thanks to Volker Gering)michael1-1/+1 2007-06-17strndup() replacementmichael1-0/+24 2007-06-17better usage output by Volker Geringmichael1-4/+20 2007-06-08Image driver libgd dependancy fixmichael5-6/+31 2007-06-04big MPD patch from Robert Buchholzmichael1-79/+86 2007-05-19gps plugin, code by michu / www.neophob.commichael7-0/+580 2007-05-17compile error on m68k fixed (debian bug 405898)michael3-10/+170 2007-05-04typo in LUIse driver fixedmichael1-1/+1 2007-05-02some compiler warnings fixedmichael6-8/+14 2007-04-30LCD4Linux-0.10.1-RC2michael1-1/+1 2007-04-30ChangeLog updatedmichael1-1782/+3099 2007-04-30svn2cl moved and optimizedmichael1-6/+0