From ff8afd375bbc4ac114974ae76265811c6c5eb946 Mon Sep 17 00:00:00 2001
From: David Maciejak <david.maciejak@gmail.com>
Date: Thu, 24 Jul 2014 11:31:27 +0700
Subject: [PATCH] wrlib: fix RCreateImageFromDrawable error log msg

This patch is fixing the name of the function from the log message.
---
 wrlib/xpixmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wrlib/xpixmap.c b/wrlib/xpixmap.c
index 14bed08..b3d3853 100644
--- a/wrlib/xpixmap.c
+++ b/wrlib/xpixmap.c
@@ -155,7 +155,7 @@ RImage *RCreateImageFromDrawable(RContext * context, Drawable drawable, Pixmap m
 	assert(drawable != None);
 
 	if (!XGetGeometry(context->dpy, drawable, &baz, &foo, &foo, &w, &h, &bar, &bar)) {
-		printf("wrlib: invalid window or pixmap passed to RCreateImageFromPixmap\n");
+		printf("wrlib: invalid window or pixmap passed to RCreateImageFromDrawable\n");
 		return NULL;
 	}
 	pimg = XGetImage(context->dpy, drawable, 0, 0, w, h, AllPlanes, ZPixmap);
-- 
1.8.3.2

