Fix a segfault caused by under-allocating an array.
[deliverable/binutils-gdb.git] / gdb / remote.h
index 93fd04a589bc1bf02816971651a2b3ad99935192..b8fdf1162a5fbc6c27512e5fcca719d2f9971e98 100644 (file)
@@ -28,7 +28,7 @@
    FOREVER, wait forever rather than timing out; this is used while
    the target is executing user code.  */
 
-extern void getpkt (char *buf, int forever);
+extern void getpkt (char *buf, long sizeof_buf, int forever);
 
 /* Send a packet to the remote machine, with error checking.  The data
    of the packet is in BUF.  The string in BUF can be at most PBUFSIZ
@@ -40,7 +40,7 @@ extern int putpkt (char *buf);
 
 /* Send HEX encoded string to the target console. (gdb_stdtarg) */
 
-extern void remote_console_output PARAMS ((char *));
+extern void remote_console_output (char *);
 
 
 /* FIXME: cagney/1999-09-20: The remote cisco stuff in remote.c needs
This page took 0.0238 seconds and 4 git commands to generate.