1
Description: <short summary of the patch>
2
TODO: Put a short summary on the line above and replace this paragraph
3
with a longer explanation of this change. Complete the meta-information
4
with other relevant fields (see below for details). To make it easier, the
5
information below has been extracted from the changelog. Adjust it or drop
8
netpipe (3.7.2-1) unstable; urgency=low
10
* New upstream release
12
Author: Camm Maguire <camm@debian.org>
15
The information above should follow the Patch Tagging Guidelines, please
16
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
17
are templates for supplementary fields that you might want to add:
19
Origin: <vendor|upstream|other>, <url of original patch>
20
Bug: <url in upstream bugtracker>
21
Bug-Debian: http://bugs.debian.org/<bugnumber>
22
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
23
Forwarded: <no|not-needed|url proving that it has been forwarded>
24
Reviewed-By: <name and email of someone who approved the patch>
25
Last-Update: <YYYY-MM-DD>
27
--- netpipe-3.7.2.orig/src/netpipe.h
28
+++ netpipe-3.7.2/src/netpipe.h
32
#include <sys/types.h>
34
#include <sys/time.h> /* struct timeval */
35
#include <sys/resource.h> /* getrusage() */
36
#include <stdlib.h> /* malloc(3) */
37
@@ -420,6 +421,10 @@ void SaveRecvPtr(ArgStruct* p);
39
void ResetRecvPtr(ArgStruct* p);
41
+void AfterAlignmentInit(ArgStruct* p);
43
+/* void InitBufferData(ArgStruct *p, int nbytes); */
47
int getopt( int argc, char * const argv[], const char *optstring);
48
--- netpipe-3.7.2.orig/src/netpipe.c
49
+++ netpipe-3.7.2/src/netpipe.c
50
@@ -145,7 +145,7 @@ int main(int argc, char **argv)
51
printf("Performance measured without cache effects\n\n"); fflush(stdout);
54
- case 'o': strcpy(s,optarg);
55
+ case 'o': memset(s,0,sizeof(s));strncpy(s,optarg,sizeof(s)-1);
56
printf("Sending output to %s\n", s); fflush(stdout);