Commit 679ade6f authored by Sergej Chodarev's avatar Sergej Chodarev
Browse files

Mala zmena

parent 565f600a
......@@ -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