git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
558b5bc
)
Without words...
author
Volker Lendecke
<vlendec@samba.org>
Mon, 29 Mar 2004 11:54:34 +0000
(11:54 +0000)
committer
Volker Lendecke
<vlendec@samba.org>
Mon, 29 Mar 2004 11:54:34 +0000
(11:54 +0000)
source/modules/vfs_expand_msdfs.c
patch
|
blob
|
history
diff --git
a/source/modules/vfs_expand_msdfs.c
b/source/modules/vfs_expand_msdfs.c
index 46a6616db95d81503764c99df3fbc036fda965dd..07fbe59825ecf80201a40ef66a48776ad0855676 100644
(file)
--- 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));