forked from snapshot112/minigame-menu
manual??? and refactoring
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#include "rooster.h"
|
||||
|
||||
#include <ncurses.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
@@ -89,7 +88,7 @@ static int get_grid_sizes(FILE *fh, rooster *rost) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
rost->height = (int)ftell(fh) / (int)sizeof(char) / rost->width;
|
||||
rost->height = (int)ftell(fh) / (int)sizeof(char) / (rost->width + 1);
|
||||
fseek(fh, 0, SEEK_SET);
|
||||
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user