diff options
author | Jeremy Allison <jra@samba.org> | 2003-11-05 00:17:14 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-11-05 00:17:14 +0000 |
commit | f581234a7a977632c117c5c61939bfba87053431 (patch) | |
tree | e093b6b3c2486236db6e6444e9b2dea7dba834cf /source3/libsmb | |
parent | 9c8d23e5d5da06e661fa1548eea7a1e44f5f6d3a (diff) | |
download | samba-f581234a7a977632c117c5c61939bfba87053431.tar.gz samba-f581234a7a977632c117c5c61939bfba87053431.tar.bz2 samba-f581234a7a977632c117c5c61939bfba87053431.zip |
Fix coredump in cli_get_backup_list.
Jeremy.
(This used to be commit 29413db303d30d28c2fb0cc6e6e963e725ad4101)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clidgram.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c index 5ab6bef87b..c4675f1938 100644 --- 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); - pstrcpy(p2,mailslot); + fstrcpy(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; } - - - |