Package: netpipe / 3.7.2-8

3.0-quilt-source-init Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 netpipe (3.7.2-1) unstable; urgency=low
 .
   * New upstream release
   * lintian fixes
Author: Camm Maguire <camm@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- netpipe-3.7.2.orig/src/netpipe.h
+++ netpipe-3.7.2/src/netpipe.h
@@ -18,6 +18,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <sys/types.h>
+#include <unistd.h>
 #include <sys/time.h>       /* struct timeval */
 #include <sys/resource.h>   /* getrusage() */
 #include <stdlib.h>         /* malloc(3) */
@@ -420,6 +421,10 @@ void SaveRecvPtr(ArgStruct* p);
 
 void ResetRecvPtr(ArgStruct* p);
 
+void AfterAlignmentInit(ArgStruct* p);
+
+/* void InitBufferData(ArgStruct *p, int nbytes); */
+
 void PrintUsage();
 
 int getopt( int argc, char * const argv[], const char *optstring);
--- netpipe-3.7.2.orig/src/netpipe.c
+++ netpipe-3.7.2/src/netpipe.c
@@ -145,7 +145,7 @@ int main(int argc, char **argv)
                       printf("Performance measured without cache effects\n\n"); fflush(stdout);
                       break;
 
-            case 'o': strcpy(s,optarg);
+            case 'o': memset(s,0,sizeof(s));strncpy(s,optarg,sizeof(s)-1);
                       printf("Sending output to %s\n", s); fflush(stdout);
                       break;