Browse Source

off-by-one error killed !

tonton th 2 months ago
parent
commit
233c1d5b9e
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      bubulles.c
  2. 1
    1
      bubulles.h

+ 1
- 1
bubulles.c View File

@@ -139,7 +139,7 @@ fprintf(stderr, "%s : %p --> %p\n", __func__, what, where);
139 139
 fprintf(stderr, "XYZ %f %f %f\n", what->p.x, what->p.y, what->p.z);
140 140
 #endif
141 141
 
142
-if (where->fidx > where->size) {
142
+if (where->fidx >= where->size) {
143 143
 	/* this is a very bad fatal error */
144 144
 	fprintf(stderr, "%s : overflow in BBList at %p\n", __func__, where);
145 145
 #if MUST_ABORT

+ 1
- 1
bubulles.h View File

@@ -4,7 +4,7 @@
4 4
 
5 5
 /* --------------------------------------------------------------------- */
6 6
 
7
-#define LIBBB_VERSION		53
7
+#define LIBBB_VERSION		54
8 8
 
9 9
 #define SZ_BUBULLE_TEXT		51		/* arbitrary value */
10 10
 

Loading…
Cancel
Save