The following commit has been merged in the master branch:
commit 1fa4652813ea993928cf4f47cc725da4aad28ed2
Author: Stefan Sperling <stsp(a)stsp.in-berlin.de>
Date: Wed Nov 1 19:15:34 2006 +0100
Only call strlcpy if there is a buffer to copy to.
diff --git a/bsd.c b/bsd.c
index eb68b21..d30d687 100644
--- a/bsd.c
+++ b/bsd.c
@@ -222,7 +222,8 @@ int open_tun_any(char *dev_name, size_t dev_name_size)
for (i = 0; i < 256; i++) {
snprintf(tun_dev_name, sizeof(tun_dev_name), "/…
[View More]dev/tun%i", i);
if ((fd = open(tun_dev_name, O_RDWR)) >= 0) {
- strlcpy(dev_name, tun_dev_name, dev_name_size);
+ if (dev_name != NULL)
+ strlcpy(dev_name, tun_dev_name, dev_name_size);
return fd;
}
}
--
batman; test conversation
[View Less]
The following commit has been merged in the master branch:
commit a8c7eabdc437477bfcc1586821f947713fcf2e56
Author: Axel Neumann <neumann(a)cgws.de>
Date: Tue Oct 31 19:38:41 2006 +0100
some comments for batman-experimental in batman-experimental/readme.txt
diff --git a/Makefile b/Makefile
index ff4bae2..18dbf74 100755
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@
#
CC = gcc
+# CC = mipsel-linux-uclibc-gcc
CFLAGS = -Wall -O0 -g3
LDFLAGS = -lpthread
#LDFLAGS = -static -…
[View More]lpthread
--
batman; test conversation
[View Less]
The following commit has been merged in the master branch:
commit f03ef89e588ef28e3b193482488010608768b9cb
Author: Stefan Sperling <stsp(a)stsp.in-berlin.de>
Date: Wed Nov 1 19:09:52 2006 +0100
Fix surplus '{'
diff --git a/bsd.c b/bsd.c
index 5174414..eb68b21 100644
--- a/bsd.c
+++ b/bsd.c
@@ -100,7 +100,7 @@ struct rt_msg
struct sockaddr_in gateway;
};
-void add_del_route( unsigned int dest, unsigned int netmask, unsigned int router, int del, char *dev, int sock ) {
+void …
[View More]add_del_route( unsigned int dest, unsigned int netmask, unsigned int router, int del, char *dev, int sock )
{
char str1[16], str2[16];
int rt_sock;
--
batman; test conversation
[View Less]