diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c index 092b77e37..41e6bbd8e 100644 --- a/src/cairo-image-surface.c +++ b/src/cairo-image-surface.c @@ -392,7 +392,8 @@ _cairo_image_surface_create_with_content (cairo_content_t content, * stride = cairo_format_stride_for_width (format, width); * data = malloc (stride * height); * surface = cairo_image_surface_create_for_data (data, format, - * width, height); + * width, height, + * stride); * * * Return value: the appropriate stride to use given the desired