cvs: php4 /ext/hyperwave hg_comm.c
| From: | Uwe Steinmann | Date: | Thu, 14 Dec 2000 07:37:36 +0000 |
| Subject: | cvs: php4 /ext/hyperwave hg_comm.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3145@lists.php.net to get a copy of this message | ||
steinm Wed Dec 13 23:37:36 2000 EDT
Modified files:
/php4/ext/hyperwave hg_comm.c
Log:
- handled possible case that an Anchor has no Position
(This used to cause a segm fault)
Index: php4/ext/hyperwave/hg_comm.c
diff -u php4/ext/hyperwave/hg_comm.c:1.36 php4/ext/hyperwave/hg_comm.c:1.37
--- php4/ext/hyperwave/hg_comm.c:1.36 Wed Dec 13 09:27:12 2000
+++ php4/ext/hyperwave/hg_comm.c Wed Dec 13 23:37:36 2000
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: hg_comm.c,v 1.36 2000/12/13 17:27:12 steinm Exp $ */
+/* $Id: hg_comm.c,v 1.37 2000/12/14 07:37:36 steinm Exp $ */
/* #define HW_DEBUG */
@@ -375,7 +375,7 @@
In such a case the Position has the value 'invisible' */
str = strstr(object, "Position");
str += 9;
- if(0 != strncmp(str, "invisible", 9)) {
+ if((str != 9) && (0 != strncmp(str, "invisible", 9))) {
sscanf(str, "0x%X 0x%X", &start, &end);
/* Determine ObjectID */