From 387400bbbded59974fd0410d62fca2d08975524e Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Sun, 4 Dec 2011 14:06:35 -0600 Subject: Wow, that was dumb --- src/nyancat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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(¤t); 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--; } -- cgit v1.2.3