mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Fix an allocation oopsie.
I must have been tired when I wrote that line.
This commit is contained in:
parent
550f1ae788
commit
323fbe1927
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ GLSL_BuildShader (const char **effect_keys)
|
||||||
|
|
||||||
shader = malloc (sizeof (shader_t));
|
shader = malloc (sizeof (shader_t));
|
||||||
shader->num_strings = num_keys;
|
shader->num_strings = num_keys;
|
||||||
shader->strings = calloc (2, num_keys);
|
shader->strings = calloc (2 * num_keys, sizeof (const char *));
|
||||||
shader->src = shader->strings + num_keys;
|
shader->src = shader->strings + num_keys;
|
||||||
|
|
||||||
ekey = dstring_new ();
|
ekey = dstring_new ();
|
||||||
|
|
Loading…
Reference in a new issue