pkgsrc/net/yale-tftpd/patches/patch-aj

27 lines
760 B
Text

$NetBSD: patch-aj,v 1.1 2003/09/21 09:15:31 jmc Exp $
--- tftpsubs.c.orig 2003-09-21 04:09:09.000000000 +0000
+++ tftpsubs.c 2003-09-21 04:10:08.000000000 +0000
@@ -39,11 +39,11 @@
#include <arpa/tftp.h>
#include <stdio.h>
-#define PKTSIZE SEGSIZE+4 /* should be moved to tftp.h */
+#define BUF_PKTSIZE SEGSIZE+4 /* should be moved to tftp.h */
struct bf {
int counter; /* size of data in buffer, or flag */
- char buf[PKTSIZE]; /* room for data packet */
+ char buf[BUF_PKTSIZE]; /* room for data packet */
} bfs[2];
/* Values for bf.counter */
@@ -233,7 +233,7 @@
int f; /* socket to flush */
{
int i, j = 0;
- char rbuf[PKTSIZE];
+ char rbuf[BUF_PKTSIZE];
struct sockaddr_in from;
int fromlen;