diff --git a/libs/gib/gib_buffer.c b/libs/gib/gib_buffer.c index 193fb8a01..0442c41f4 100644 --- a/libs/gib/gib_buffer.c +++ b/libs/gib/gib_buffer.c @@ -215,9 +215,8 @@ GIB_Buffer_Push_Sstack (struct cbuf_s *cbuf) gib_buffer_data_t *g = GIB_DATA (cbuf); if (++g->stack.p > g->stack.size) { - g->stack.values = - realloc (g->stack.values, - sizeof (struct gib_dsarray_s) * g->stack.p); + g->stack.values = realloc (g->stack.values, + sizeof (struct gib_dsarray_s) * g->stack.p); g->stack.values[g->stack.p - 1].dstrs = 0; g->stack.values[g->stack.p - 1].size = g->stack.values[g->stack.p - 1].realsize = 0; diff --git a/libs/gib/gib_vars.c b/libs/gib/gib_vars.c index afd1c89e2..f05fd3eb3 100644 --- a/libs/gib/gib_vars.c +++ b/libs/gib/gib_vars.c @@ -135,8 +135,8 @@ GIB_Var_Get_Complex (hashtab_t ** first, hashtab_t ** second, char *key, return 0; else if (index >= var->size) { if (create) { - var->array = - realloc (var->array, (index + 1) * sizeof (struct gib_varray_s)); + var->array = realloc (var->array, + (index + 1) * sizeof (struct gib_varray_s)); memset (var->array + var->size, 0, (index + 1 - var->size) * sizeof (struct gib_varray_s)); var->size = index + 1; @@ -191,8 +191,8 @@ GIB_Var_Get_Very_Complex (hashtab_t ** first, hashtab_t ** second, dstring_t *ke } if (index >= var->size) { if (create) { - var->array = - realloc (var->array, (index + 1) * sizeof (struct gib_varray_s)); + var->array = realloc (var->array, + (index + 1) * sizeof (struct gib_varray_s)); memset (var->array + var->size, 0, (index + 1 - var->size) * sizeof (struct gib_varray_s)); var->size = index + 1; diff --git a/libs/models/alias/model_alias.c b/libs/models/alias/model_alias.c index 77a72bb78..0e370953a 100644 --- a/libs/models/alias/model_alias.c +++ b/libs/models/alias/model_alias.c @@ -201,8 +201,8 @@ Mod_LoadAliasModel (model_t *mod, void *buffer, cache_allocator_t allocator) Sys_Error ("model %s has no triangles", mod->name); if (pmodel->numtris > triangles_size) { - triangles = - realloc (triangles, pmodel->numtris * sizeof (mtriangle_t)); + triangles = realloc (triangles, + pmodel->numtris * sizeof (mtriangle_t)); if (!triangles) Sys_Error ("model_alias: out of memory"); triangles_size = pmodel->numtris;