git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b943b5
)
fixed a pstrcpy() that is not on a pstring
author
Andrew Tridgell
<tridge@samba.org>
Fri, 6 Jun 2003 05:31:30 +0000
(
05:31
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 6 Jun 2003 05:31:30 +0000
(
05:31
+0000)
(This used to be commit
f644b3d6d238e3c44d0358b44296a9360d16bb41
)
source3/libsmb/nmblib.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/nmblib.c
b/source3/libsmb/nmblib.c
index 30ce5b6b10c5aad29bec29a7acb40508d9c4bd8e..b96111240f1e5795f4cb96767a125f4b8c14ae1d 100644
(file)
--- a/
source3/libsmb/nmblib.c
+++ b/
source3/libsmb/nmblib.c
@@
-295,7
+295,7
@@
static int put_nmb_name(char *buf,int offset,struct nmb_name *name)
if (name->scope[0]) {
/* XXXX this scope handling needs testing */
ret += strlen(name->scope) + 1;
-
pstrcpy(&buf[offset+1],name->scope
);
+
safe_strcpy(&buf[offset+1],name->scope,sizeof(name->scope)
);
p = &buf[offset+1];
while ((p = strchr_m(p,'.'))) {