{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/6b80b27e0030320efddd03358546176a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6b80b27e0030320efddd03358546176a","url":"https://api.github.com/users/AndrejMitrovic","login":"AndrejMitrovic","id":360179},"milestone":null,"labels":[],"updated_at":"2011-11-04T23:12:02Z","assignee":null,"comments":0,"closed_at":null,"url":"https://api.github.com/repos/MikeWey/DMagick/issues/1","body":"dmagick.Image.d, Line 1357:\r\n\r\n    throw new ImageException(format(\"Pixel buffer needs more storage for %s channels.\", map));\r\n\r\ncauses:\r\n..\\DMagick\\dmagick\\Image.d(1357): Error: function dmagick.Image.Image.format () const is not callable using argument types (string,string)\r\n\r\nImage.format hijacked std.string.format, use this or introduce an alias:\r\n\r\n    throw new ImageException(std.string.format(\"Pixel buffer needs more storage for %s channels.\", map));\r\n\r\nAlso, I think this comparison is not right:\r\n\r\n    if ( pixels.length <=  (area.width * area.height) * map.count )\r\n\r\nit should be:\r\n\r\n    if ( pixels.length <  (area.width * area.height) * map.count )\r\n\r\nThere's no reason to fail if the buffer has the exact amount of space needed.","html_url":"https://github.com/MikeWey/DMagick/issues/1","title":"format() call hijack and length comparison mismatch","number":1,"id":2149461,"created_at":"2011-11-04T23:12:02Z"},"action":"opened"}