diff options
| author | Andrej Mitrovic | 2011-11-05 00:14:03 +0100 |
|---|---|---|
| committer | Andrej Mitrovic | 2011-11-05 00:14:03 +0100 |
| commit | 0c11cca372f96f0b614ca3bd99b832aa8235f0e4 (patch) | |
| tree | a809c96d98d19b5cdecdfdde20194b48400ddf2c /dmagick | |
| parent | 4841afcb9613f1d01e764f1b96cc076add5b3180 (diff) | |
Fix std.string.format hijack and the wrong comparison for buffer length.
Diffstat (limited to 'dmagick')
| -rw-r--r-- | dmagick/Image.d | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dmagick/Image.d b/dmagick/Image.d index 5497e40..2303676 100644 --- a/dmagick/Image.d +++ b/dmagick/Image.d @@ -1353,8 +1353,8 @@ class Image */ void exportPixels(T)(Geometry area, T[] pixels, string map = "RGBA") const { - if ( pixels.length <= (area.width * area.height) * map.count ) - throw new ImageException(format("Pixel buffer needs more storage for %s channels.", map)); + if ( pixels.length < (area.width * area.height) * map.count ) + throw new ImageException(std.string.format("Pixel buffer needs more storage for %s channels.", map)); StorageType storage = getStorageType!(T); |
