From 74b4733ee10fb1a4e7faf285bb7397a8730ebb54 Mon Sep 17 00:00:00 2001 From: Radovan Kofira Date: Thu, 5 Nov 2020 19:36:45 +0100 Subject: [PATCH] 0.15 --- cv5/a_train.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cv5/a_train.c b/cv5/a_train.c index c313084..c24a1aa 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -17,9 +17,10 @@ struct car* add_car(struct car* first,const char* target) { struct car* temp=first; int length=0; while(temp!=NULL){ - if(temp->next!=NULL) + if(temp->next!=NULL){ temp=temp->next; - length++; + } + length++; } strcpy(newcar->value, target);