about summary refs log tree commit diff
path: root/editor/pnmpad.c
diff options
context:
space:
mode:
Diffstat (limited to 'editor/pnmpad.c')
-rw-r--r--editor/pnmpad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/pnmpad.c b/editor/pnmpad.c
index 0fff88d0..10b69d03 100644
--- a/editor/pnmpad.c
+++ b/editor/pnmpad.c
@@ -304,8 +304,8 @@ computePadSizeBeforeMult(unsigned int   const unpaddedSize,
 -----------------------------------------------------------------------------*/
     if (sizeSpec) {
         if (begPadSpec && endPadSpec) {
-            if (begPadReq + unpaddedSize + endPadReq < unpaddedSize) {
-                pm_error("Beginning adding (%u), and end "
+            if (begPadReq + unpaddedSize + endPadReq < sizeReq) {
+                pm_error("Beginning padding (%u), and end "
                          "padding (%u) are insufficient to bring the "
                          "image size of %u up to %u.",
                          begPadReq, endPadReq, unpaddedSize, sizeReq);