summaryrefslogtreecommitdiff
path: root/source3/lib/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/interface.c')
-rw-r--r--source3/lib/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/interface.c b/source3/lib/interface.c
index 8cc5cfb0b1..581a2135bd 100644
--- a/source3/lib/interface.c
+++ b/source3/lib/interface.c
@@ -136,7 +136,7 @@ static void interpret_interfaces(char *s, struct interface **interfaces,
allones_ip = *interpret_addr2("255.255.255.255");
loopback_ip = *interpret_addr2("127.0.0.1");
- while (next_token(&ptr,token,NULL)) {
+ while (next_token(&ptr,token,NULL,sizeof(token))) {
/* parse it into an IP address/netmasklength pair */
char *p = strchr(token,'/');
if (p) *p++ = 0;