[xdebug-dev] xdebug xdebug/xdebug_handler_dbgp.c - Fixed off by one error.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Thu, 6 Apr 2006 20:57:13 +0200

Date: Thu Apr 6 20:57:13 CEST 2006
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Fixed off by one error.

Modified files:
           xdebug/xdebug_handler_dbgp.c (version: 1.90)

[FILE: /xdebug/xdebug_handler_dbgp.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -r1.89 -r1.90
--- xdebug/xdebug_handler_dbgp.c:1.89 Thu Apr 06 16:47:28 2006 GMT
+++ xdebug/xdebug_handler_dbgp.c Thu Apr 06 16:57:13 2006 GMT
@@ -234,7 +234,7 @@
                 fflush(XG(remote_log_file));
         }
 
- xdebug_str_add(ret, xdebug_sprintf("%d", xml_message.l + sizeof("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n")), 1);
+ xdebug_str_add(ret, xdebug_sprintf("%d", xml_message.l + sizeof("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n") - 1), 1);
         xdebug_str_addl(ret, "\0", 1, 0);
         xdebug_str_add(ret, "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n", 0);
         xdebug_str_add(ret, xml_message.d, 0);
@@ -2087,7 +2087,7 @@
 
 char *xdebug_dbgp_get_revision(void)
 {
- return "$Revision: 1.89 $";
+ return "$Revision: 1.90 $";
 }
 
 int xdebug_dbgp_cmdloop(xdebug_con *context TSRMLS_DC)
Received on Thu Apr 06 2006 - 20:57:17 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST