Index: potx-cli.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/potx/Attic/potx-cli.php,v
retrieving revision 1.1.2.4
diff -u -r1.1.2.4 potx-cli.php
--- potx-cli.php	27 Jun 2007 13:14:44 -0000	1.1.2.4
+++ potx-cli.php	22 Jul 2007 11:29:22 -0000
@@ -15,7 +15,10 @@
 include 'potx.inc';
 
 // We need a lot of resources probably
-@ini_set('memory_limit', '16M');
+$memory_limit = @ini_get('memory_limit');
+if ($memory_limit != '' && (int)$memory_limit < 16) {
+  @ini_set('memory_limit', 16777216);
+}
 @set_time_limit(0);
 
 if (!defined("STDERR")) {

