Fix an allocation oopsie.

I must have been tired when I wrote that line.
This commit is contained in:
Bill Currie 2013-05-12 13:50:17 +09:00
parent 550f1ae788
commit 323fbe1927

View file

@ -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 ();