mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 01:41:10 +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->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;
|
||||
|
||||
ekey = dstring_new ();
|
||||
|
|
Loading…
Reference in a new issue