aboutsummaryrefslogtreecommitdiff
path: root/twtxt.c
diff options
context:
space:
mode:
Diffstat (limited to 'twtxt.c')
-rw-r--r--twtxt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/twtxt.c b/twtxt.c
index fd15e87..b7f05d8 100644
--- a/twtxt.c
+++ b/twtxt.c
@@ -335,7 +335,7 @@ int main(int argc, char *argv[]) {
int i = 0; /* loop variable */
int j = 0; /* limiter to maxVal */
- for (i = iAllTweets; i >= 0, j <= maxVal; --i, ++j) {
+ for (i = 0; i < iAllTweets && j <= maxVal; i++, j++) {
/* Print the newest tweets (user<spacing>tweet). */
if (strlen(ptr[i].username) > iLongestNickname) {
/* Faulty line. */