cvs: /php4/ext/interbase interbase.c
| From: | Colin Viebrock | Date: | Thu, 06 Apr 2000 17:02:11 +0000 |
| Subject: | cvs: /php4/ext/interbase interbase.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-13236@lists.php.net to get a copy of this message | ||
cmv Thu Apr 6 10:02:11 2000 EDT
Modified files:
/php4/ext/interbase interbase.c
Log:
a better way, i've been told (thanks)
Index: php4/ext/interbase/interbase.c
diff -u php4/ext/interbase/interbase.c:1.18 php4/ext/interbase/interbase.c:1.19
--- php4/ext/interbase/interbase.c:1.18 Thu Apr 6 09:57:32 2000
+++ php4/ext/interbase/interbase.c Thu Apr 6 10:01:41 2000
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: interbase.c,v 1.18 2000/04/06 16:57:32 cmv Exp $ */
+/* $Id: interbase.c,v 1.19 2000/04/06 17:01:41 cmv Exp $ */
/* TODO: Arrays, roles?
@@ -513,33 +513,28 @@
{
char tmp[128];
- char tmp2[128];
IBLS_FETCH();
php_info_print_table_start();
php_info_print_table_row(2, "Interbase Support", "enabled");
- php_info_print_table_row(2, "Revision", "$Revision: 1.18 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.19 $");
#ifdef COMPILE_DL
php_info_print_table_row(2, "Dynamic Module", "yes");
#endif
php_info_print_table_row(2, "Allow Persistent Links",
(IBG(allow_persistent)?"Yes":"No") );
- sprintf(tmp, "%d/", IBG(num_persistent) );
if (IBG(max_persistent) == -1) {
- strcat(tmp, "unlimited");
+ snprintf(tmp, 128, "%d/unlimited", IBG(num_persistent));
} else {
- sprintf(tmp2, "%ld", IBG(max_persistent));
- strcat(tmp, tmp2);
+ snprintf(tmp, 128, "%d/%ld", IBG(num_persistent), IBG(max_persistent));
}
php_info_print_table_row(2, "Persistent Links", tmp );
- sprintf(tmp, "%d/", IBG(num_links) );
if (IBG(max_links) == -1) {
- strcat(tmp, "unlimited");
+ snprintf(tmp, 128, "%d/unlimited", IBG(num_links));
} else {
- sprintf(tmp2, "%ld", IBG(max_links));
- strcat(tmp, tmp2);
+ snprintf(tmp, 128, "%d/%ld", IBG(num_links), IBG(max_links));
}
php_info_print_table_row(2, "Total Links", tmp );