]> granicus.if.org Git - php/commitdiff
Fix negative list offsets
authorBob Weinand <bobwei9@hotmail.com>
Fri, 17 Oct 2014 17:32:02 +0000 (19:32 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Fri, 17 Oct 2014 17:32:02 +0000 (19:32 +0200)
phpdbg_list.c
phpdbg_list.h

index 365c7a62e8c43637f97261ac4c51f0ca9f6c0ad7..80b5d2b1892d54ba99c8dc62266681634cc1240e 100644 (file)
@@ -124,7 +124,7 @@ PHPDBG_LIST(class) /* {{{ */
        return SUCCESS;
 } /* }}} */
 
-void phpdbg_list_file(const char *filename, uint count, uint offset, uint highlight TSRMLS_DC) /* {{{ */
+void phpdbg_list_file(const char *filename, uint count, int offset, uint highlight TSRMLS_DC) /* {{{ */
 {
        uint line, lastline;
        phpdbg_file_source **data;
index 385ae20580422e185d9b46eceb3079f59f3e77ef..c88328bfeaf7335d623607314d418d228d4e523f 100644 (file)
@@ -34,7 +34,7 @@ PHPDBG_LIST(func);
 
 void phpdbg_list_function_byname(const char *, size_t TSRMLS_DC);
 void phpdbg_list_function(const zend_function* TSRMLS_DC);
-void phpdbg_list_file(const char*, uint, uint, uint TSRMLS_DC);
+void phpdbg_list_file(const char*, uint, int, uint TSRMLS_DC);
 
 extern const phpdbg_command_t phpdbg_list_commands[];