git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c94d59
)
Fix coredump in cli_get_backup_list.
author
Jeremy Allison
<jra@samba.org>
Wed, 5 Nov 2003 00:17:17 +0000
(
00:17
+0000)
committer
Jeremy Allison
<jra@samba.org>
Wed, 5 Nov 2003 00:17:17 +0000
(
00:17
+0000)
Jeremy.
(This used to be commit
13d32f561b23f2d69daf103a971acbdae547703d
)
source3/libsmb/clidgram.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clidgram.c
b/source3/libsmb/clidgram.c
index 5ab6bef87b699d71b615fcd29dd5a4515f5678de..c4675f1938a3a63654619ab67ca6216f8f8a03d2 100644
(file)
--- a/
source3/libsmb/clidgram.c
+++ b/
source3/libsmb/clidgram.c
@@
-75,7
+75,7
@@
int cli_send_mailslot(int dgram_sock, BOOL unique, const char *mailslot,
SSVAL(ptr,smb_vwv15,1);
SSVAL(ptr,smb_vwv16,2);
p2 = smb_buf(ptr);
-
p
strcpy(p2,mailslot);
+
f
strcpy(p2,mailslot);
p2 = skip_string(p2,1);
memcpy(p2,buf,len);
@@
-135,7
+135,7
@@
static char cli_backup_list[1024];
int cli_get_backup_list(const char *myname, const char *send_to_name)
{
-
char outbuf[15]
;
+
pstring outbuf
;
char *p;
struct in_addr sendto_ip, my_ip;
int dgram_sock;
@@
-262,6
+262,3
@@
int cli_get_backup_server(char *my_name, char *target, char *servername, int nam
return True;
}
-
-
-