diff --git a/src/map.c b/src/map.c
index a11fae39184e64c18651402c32ffca881046c376..65bf7ce1ab92f2f2f721f5ac37cad3b6d6660f81 100644
--- a/src/map.c
+++ b/src/map.c
@@ -398,7 +398,7 @@ static int map_objects_toscreen(lua_State *L)
 			lua_pushboolean(L, FALSE);
 			if (lua_pcall(L, 6, 1, 0))
 			{
-				printf("Display callback error: UID %ld: %sn", dm->uid, lua_tostring(L, -1));
+				printf("Display callback error: UID %ld: %s\n", m->uid, lua_tostring(L, -1));
 				lua_pop(L, 1);
 			}
 			lua_pop(L, 1);