Commit 91d0f6cb authored by Lucia Štefanková's avatar Lucia Štefanková
Browse files

mala zmena

parent 679ade6f
Pipeline #122086 passed with stages
in 26 seconds
......@@ -19,7 +19,7 @@ void add_post(wall_t *wall, post_t *post) {
}
post_t *get_post(wall_t *wall, int number) {
if (number > 0 && number < wall->num_posts)
if (number > 0 && number <= wall->num_posts)
return wall->posts[number - 1];
else
return NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment