]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 9 Nov 2011 14:31:35 +0000 (14:31 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 9 Nov 2011 14:31:35 +0000 (14:31 +0000)
MagickCore/string.c
config/policy.xml

index 66cfaf7799cc20c815bd63096ba375e2426660f2..04c4d48d79ed58aa24450f329fa022666ce895b2 100644 (file)
@@ -1388,11 +1388,8 @@ MagickExport double InterpretSiPrefixValue(const char *restrict string,
                 }
             }
         }
-      if (*q == 'B')
-        {
-          value*=8.0;
-          q++;
-        }
+      if ((*q == 'b') || (*q == 'B'))
+        q++;
     }
   if (sentinal != (char **) NULL)
     *sentinal=q;
index 28eda17864032a02d27c73b27aa2cd51d40d4792..19e979620ed29ae6fdd66b8448e338e925064cbc 100644 (file)
@@ -37,7 +37,7 @@
 
   Any large image is cached to disk rather than memory:
 
-    <policy domain="resource" name="area" value="1gb"/>
+    <policy domain="resource" name="area" value="1GB"/>
 
   Note, resource policies are maximums for each instance of ImageMagick (e.g.
   policy memory limit 1GB, -limit 2GB exceeds policy maximum so memory limit
@@ -48,8 +48,8 @@
   <!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
   <!-- <policy domain="resource" name="memory" value="2GiB"/> -->
   <!-- <policy domain="resource" name="map" value="4GiB"/> -->
-  <!-- <policy domain="resource" name="area" value="1gb"/> -->
-  <!-- <policy domain="resource" name="disk" value="16eb"/> -->
+  <!-- <policy domain="resource" name="area" value="1GB"/> -->
+  <!-- <policy domain="resource" name="disk" value="16EB"/> -->
   <!-- <policy domain="resource" name="file" value="768"/> -->
   <!-- <policy domain="resource" name="thread" value="4"/> -->
   <!-- <policy domain="resource" name="throttle" value="0"/> -->