summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nyancat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nyancat.c b/src/nyancat.c
index 36d58c4..3a7a4b2 100644
--- a/src/nyancat.c
+++ b/src/nyancat.c
@@ -569,10 +569,10 @@ ready:
time(&current);
double diff = difftime(current, start);
/* Now count the length of the time difference so we can center */
- int nLen = (int)diff;
+ int nLen = digits((int)diff);
int width = (80 - 29 - nLen) / 2;
/* Spit out some spaces so that we're actually centered */
- while (width) {
+ while (width > 0) {
printf(" ");
width--;
}
64e0a-1&id=869756da0627b14a6954f96aa5009d57a5e682c7&follow=1'>Imported Upstream version 0+git20140611.14bd6c7upstream/0+git20140611.14bd6c7Jonathan McCrohan7-11/+60 2014-05-13Imported Upstream version 0+git20140512.1246b27upstream/0+git20140512.1246b27Jonathan McCrohan391-301/+3983 2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877