netpipe (3.7.2-7) 3.0-quilt-source-init


 src/netpipe.c |    2 +-
 src/netpipe.h |    5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

download this patch

Patch contents

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
 netpipe (3.7.2-1) unstable; urgency=low
   * New upstream release
   * lintian fixes
Author: Camm Maguire <>

The information above should follow the Patch Tagging Guidelines, please
checkout 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>
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);
-            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);