summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/siefs/files/siefs-0.5-qa-fixes.patch')
-rw-r--r--sys-fs/siefs/files/siefs-0.5-qa-fixes.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/sys-fs/siefs/files/siefs-0.5-qa-fixes.patch b/sys-fs/siefs/files/siefs-0.5-qa-fixes.patch
new file mode 100644
index 000000000000..59feeae61e11
--- /dev/null
+++ b/sys-fs/siefs/files/siefs-0.5-qa-fixes.patch
@@ -0,0 +1,40 @@
+diff -Nru siefs-0.5.orig/siefs/charset.c siefs-0.5/siefs/charset.c
+--- siefs-0.5.orig/siefs/charset.c 2005-04-05 17:15:47.000000000 +0300
++++ siefs-0.5/siefs/charset.c 2007-05-23 14:13:19.000000000 +0300
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <ctype.h>
+
+diff -Nru siefs-0.5.orig/siefs/comm.c siefs-0.5/siefs/comm.c
+--- siefs-0.5.orig/siefs/comm.c 2005-04-05 02:53:38.000000000 +0300
++++ siefs-0.5/siefs/comm.c 2007-05-23 14:12:32.000000000 +0300
+@@ -15,6 +15,7 @@
+ #include <termios.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <stdarg.h>
+ #include <errno.h>
+ #include "comm.h"
+@@ -114,7 +115,7 @@
+ if (fd < 0) return -1;
+ h->fd = fd;
+
+- bzero(&tio, sizeof(tio));
++ memset(&tio, 0, sizeof(tio));
+ f = commflags(h->speed);
+ if (f == -1) return -1;
+ tio.c_cflag = f;
+diff -Nru siefs-0.5.orig/siefs/transport.c siefs-0.5/siefs/transport.c
+--- siefs-0.5.orig/siefs/transport.c 2005-04-05 18:06:44.000000000 +0300
++++ siefs-0.5/siefs/transport.c 2007-05-23 14:13:00.000000000 +0300
+@@ -10,6 +10,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <errno.h>
+ #include "comm.h"
+ #include "crcmodel.h"