Replaced all uses of malloc with calloc.

This commit is contained in:
Camilla Berglund
2013-07-04 14:20:14 +02:00
parent 1947557eb1
commit 209a470a5f
6 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -44,9 +44,9 @@
void _glfwAllocGammaRamp(GLFWgammaramp* ramp, unsigned int size)
{
ramp->red = (unsigned short*) malloc(size * sizeof(unsigned short));
ramp->green = (unsigned short*) malloc(size * sizeof(unsigned short));
ramp->blue = (unsigned short*) malloc(size * sizeof(unsigned short));
ramp->red = (unsigned short*) calloc(size, sizeof(unsigned short));
ramp->green = (unsigned short*) calloc(size, sizeof(unsigned short));
ramp->blue = (unsigned short*) calloc(size, sizeof(unsigned short));
ramp->size = size;
}