summaryrefslogtreecommitdiffstats
path: root/source/modules
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
commit9cb6b10efa3c7d50d3e686bda122121c61633419 (patch)
treef80b7fd17ecefed9e290ba342215b1980b0d783d /source/modules
parent558b5bc1d81d8ccd2048b37357e4b3e5b9b4e011 (diff)
downloadsamba-9cb6b10efa3c7d50d3e686bda122121c61633419.tar.gz
samba-9cb6b10efa3c7d50d3e686bda122121c61633419.tar.xz
samba-9cb6b10efa3c7d50d3e686bda122121c61633419.zip
Without words...
Diffstat (limited to 'source/modules')
-rw-r--r--source/modules/vfs_expand_msdfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/modules/vfs_expand_msdfs.c b/source/modules/vfs_expand_msdfs.c
index 46a6616db95..07fbe59825e 100644
--- a/source/modules/vfs_expand_msdfs.c
+++ b/source/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));