summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-03-29 11:54:34 +0000
committerVolker Lendecke <vlendec@samba.org>2004-03-29 11:54:34 +0000
commit4ee66eb4c3ffc575dde7aa7156a0dca1b23825e1 (patch)
tree67d052d5627f4e57df31ed8df07a17b812b7eb5b /source3
parentf6d86af4a2488aee1b8fdacc7228c18e12edde37 (diff)
downloadsamba-4ee66eb4c3ffc575dde7aa7156a0dca1b23825e1.tar.gz
samba-4ee66eb4c3ffc575dde7aa7156a0dca1b23825e1.tar.bz2
samba-4ee66eb4c3ffc575dde7aa7156a0dca1b23825e1.zip
Without words...
(This used to be commit 9cb6b10efa3c7d50d3e686bda122121c61633419)
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_expand_msdfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_expand_msdfs.c b/source3/modules/vfs_expand_msdfs.c
index 46a6616db9..07fbe59825 100644
--- a/source3/modules/vfs_expand_msdfs.c
+++ b/source3/modules/vfs_expand_msdfs.c
@@ -55,7 +55,7 @@ static BOOL read_target_host(const char *mapfile, pstring targethost)
while ((s=x_fgets(buf, sizeof(buf), f)) != NULL) {
- if (buf[strlen(buf)-1] == '\n')
+ if ((strlen(buf) > 0) && (buf[strlen(buf)-1] == '\n'))
buf[strlen(buf)-1] = '\0';
DEBUG(10, ("Scanning line [%s]\n", buf));