summaryrefslogtreecommitdiffstats
path: root/libdimension/canvas.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/canvas.c')
-rw-r--r--libdimension/canvas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/canvas.c b/libdimension/canvas.c
index 9bf2056..0242671 100644
--- a/libdimension/canvas.c
+++ b/libdimension/canvas.c
@@ -1,5 +1,5 @@
/*************************************************************************
- * Copyright (C) 2009-2011 Tavian Barnes <tavianator@tavianator.com> *
+ * Copyright (C) 2009-2014 Tavian Barnes <tavianator@tavianator.com> *
* *
* This file is part of The Dimension Library. *
* *
@@ -30,7 +30,7 @@
dmnsn_canvas *
dmnsn_new_canvas(size_t width, size_t height)
{
- dmnsn_canvas *canvas = dmnsn_malloc(sizeof(dmnsn_canvas));
+ dmnsn_canvas *canvas = DMNSN_MALLOC(dmnsn_canvas);
canvas->width = width;
canvas->height = height;
canvas->optimizers = dmnsn_new_array(sizeof(dmnsn_canvas_optimizer));