-rw-r--r-- | src/model/data/base.sqc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/model/data/base.sqc b/src/model/data/base.sqc index f15d18b..41a651c 100644 --- a/src/model/data/base.sqc +++ b/src/model/data/base.sqc @@ -71,6 +71,7 @@ base (void) char *gi_data_row = S.gi_data + (i * 20); strncpy (gi_data_row, coordinates.gi.data, sizeof (char) * 20); + *(gi_data_row + coordinates.gi.length) = '\0'; float *v = S.base_vertices_data + (i * 2); *v = coordinates.x; |