pkgsrc/net/wmnet/patches/patch-af
wiz d6affa77ea It seems struct ifnet grew, and the buffer used to kvm_read into wasn't
big enough, resulting into overwriting of stack variables making wmnet
core dump because of segfault. Increase buffer size to avoid that.
Bump to 1.06nb2.
2001-06-30 09:55:57 +00:00

20 lines
960 B
Text

$NetBSD: patch-af,v 1.2 2001/06/30 09:55:57 wiz Exp $
--- wmnet.h.orig Fri May 5 03:02:26 2000
+++ wmnet.h
@@ -68,12 +68,13 @@
Pixmap arrow;
Atom delete_atom;
int screen, specified_state = -1;
+int no3d = 0; /* 3d shadow look by default */
GC graphics_context;
-unsigned long tx_pixel[3], rx_pixel[3], labelfg_pixel, labelbg_pixel, black_pixel, white_pixel, darkgrey_pixel, grey_pixel;
+unsigned long tx_pixel[3], rx_pixel[3], labelfg_pixel, labelbg_pixel, bg_pixel, black_pixel, white_pixel, darkgrey_pixel, grey_pixel;
typedef int (*parser_func)(void);
/* I know statically declared buffers are against GNU coding standards, so sue me */
-char buffer[256], *click_command = NULL, *label = NULL;
+char buffer[2048], *click_command = NULL, *label = NULL;
struct timeval timenow, timelast;
unsigned long totalbytes_in, totalbytes_out, lastbytes_in, lastbytes_out;
unsigned long totalpackets_in, totalpackets_out, lastpackets_in, lastpackets_out;