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;