summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--README2
-rw-r--r--TODO1
-rw-r--r--src/controller/actions/sel_save.sqc3
-rw-r--r--src/controller/callbacks/mouse.c10
-rw-r--r--src/model/data/base.sqc3
5 files changed, 12 insertions, 7 deletions
diff --git a/src/model/data/base.sqc b/src/model/data/base.sqc
index ad1c395..f15d18b 100644
--- a/src/model/data/base.sqc
+++ b/src/model/data/base.sqc
@@ -69,7 +69,8 @@ base (void)
{
int i = coordinates.coord_id - 1;
- strncpy (S.gi_data + i, coordinates.gi.data, sizeof (S.gi_data[i]));
+ char *gi_data_row = S.gi_data + (i * 20);
+ strncpy (gi_data_row, coordinates.gi.data, sizeof (char) * 20);
float *v = S.base_vertices_data + (i * 2);
*v = coordinates.x;

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.