This commit is contained in:
tTh
2022-05-21 13:41:20 +02:00
parent bcd64245d2
commit 9cbbb35cde
6 changed files with 16 additions and 13 deletions

View File

@@ -75,6 +75,9 @@ return bblptr;
/* --------------------------------------------------------------------- */
int free_bubulles(BBList *bbl, int k)
{
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( %p %d )\n", __func__, bbl, k);
#endif
if (NULL == bbl->bbs) {
fprintf(stderr, "%s : array ptr is null\n", __func__);
@@ -147,7 +150,6 @@ if (where->fidx >= where->size) {
#endif
return -1;
}
memcpy(&where->bbs[where->fidx], what, sizeof(Bubulle));