git.samba.org
/
metze
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix warning messages caused by addition of null check in fstrcpy macro.
[metze/samba-autobuild/.git]
/
source3
/
winbindd
/
idmap_hash
/
mapfile.c
diff --git
a/source3/winbindd/idmap_hash/mapfile.c
b/source3/winbindd/idmap_hash/mapfile.c
index 28280590934f95fb242f60709780ce0a2e5fa207..1183328a3f165fb7593e4dbc330daef036eb7b90 100644
(file)
--- a/
source3/winbindd/idmap_hash/mapfile.c
+++ b/
source3/winbindd/idmap_hash/mapfile.c
@@
-87,8
+87,8
@@
static bool mapfile_read_line(fstring key, fstring value)
*p = '\0';
p++;
-
fstrcpy(key, buffer
);
-
fstrcpy(value, p
);
+
strlcpy(key, buffer, sizeof(key)
);
+
strlcpy(value, p, sizeof(value)
);
/* Eat whitespace */