ports/net/quagga/files/patch-lib-buffer.c
Sergey Matveychuk 8558006a0a - Fix a crash when vtysh was executed.
- Remove useless target (install is default) in depends

PR:		ports/93094
Reported by:	TANABE Hiroyasu <h@cosat.com>, John <freebsd@moe.co.uk>
Submitted by:	maintainer
2006-02-10 12:45:36 +00:00

11 lines
363 B
C

--- lib/buffer.c.orig Fri Feb 3 13:24:03 2006
+++ lib/buffer.c Fri Feb 3 13:24:15 2006
@@ -53,7 +53,7 @@
size_t sp;
/* Actual data stream (variable length). */
- unsigned char data[]; /* real dimension is buffer->size */
+ unsigned char data[0]; /* real dimension is buffer->size */
};
/* It should always be true that: 0 <= sp <= cp <= size */