cvs: php4 /ext/standard pack.c
| From: | Stanislav Malyshev | Date: | Mon, 30 Oct 2000 12:26:26 +0000 |
| Subject: | cvs: php4 /ext/standard pack.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2354@lists.php.net to get a copy of this message | ||
stas Mon Oct 30 04:26:26 2000 EDT
Modified files:
/php4/ext/standard pack.c
Log:
Make "H*" work
Index: php4/ext/standard/pack.c
diff -u php4/ext/standard/pack.c:1.26 php4/ext/standard/pack.c:1.27
--- php4/ext/standard/pack.c:1.26 Sun Sep 10 06:47:51 2000
+++ php4/ext/standard/pack.c Mon Oct 30 04:26:26 2000
@@ -15,7 +15,7 @@
| Authors: Chris Schneider <cschneid@relog.ch> |
+----------------------------------------------------------------------+
*/
-/* $Id: pack.c,v 1.26 2000/09/10 13:47:51 stas Exp $ */
+/* $Id: pack.c,v 1.27 2000/10/30 12:26:26 stas Exp $ */
#include "php.h"
@@ -558,7 +558,7 @@
}
case 'h': case 'H': {
- size = arg/2;
+ size = (arg>0)?arg/2:arg;
arg = 1;
break;
}