{
char tmp[128];
- char tmp2[128];
IBLS_FETCH();
#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 );