BeGeistert checkin: fixed broken allocation length as found by the USE_WALL
feature. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9398 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -42,7 +42,7 @@ register_image(struct team *team, image_info *_info, size_t size)
|
|||||||
image_id id = atomic_add(&sNextImageID, 1);
|
image_id id = atomic_add(&sNextImageID, 1);
|
||||||
struct image *image;
|
struct image *image;
|
||||||
|
|
||||||
image = malloc(sizeof(image_info));
|
image = malloc(sizeof(struct image));
|
||||||
if (image == NULL)
|
if (image == NULL)
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user