cvs: /php4/ext/standard dl.c
| From: | Andi Gutmans | Date: | Tue, 07 Mar 2000 15:50:52 +0000 |
| Subject: | cvs: /php4/ext/standard dl.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-11680@lists.php.net to get a copy of this message | ||
andi Tue Mar 7 07:50:52 2000 EDT
Modified files:
/php4/ext/standard dl.c
Log:
- Thies, it is crucial :)
Index: php4/ext/standard/dl.c
diff -u php4/ext/standard/dl.c:1.27 php4/ext/standard/dl.c:1.28
--- php4/ext/standard/dl.c:1.27 Mon Mar 6 19:43:03 2000
+++ php4/ext/standard/dl.c Tue Mar 7 07:50:51 2000
@@ -84,7 +84,7 @@
&& PG(extension_dir)[0]){
int extension_dir_len = strlen(PG(extension_dir));
- libpath = emalloc(extension_dir_len+strlen(file->value.str.val)+1);
+ libpath = emalloc(extension_dir_len+file->value.str.len+1);
if (PG(extension_dir)[extension_dir_len-1]=='/' ||
PG(extension_dir)[extension_dir_len-1]=='\\') {
sprintf(libpath,"%s%s",PG(extension_dir),file->value.str.val);
@@ -92,7 +92,7 @@
sprintf(libpath,"%s/%s",PG(extension_dir),file->value.str.val);
}
} else {
- libpath = estrdup(file->value.str.val);
+ libpath = estrndup(file->value.str.val, file->value.str.len);
}
/* load dynamic symbol */