Add missing third parameter to open().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@65 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -2273,7 +2273,7 @@ char *nick;
|
|||||||
tmp = m_strdup(new->filename);
|
tmp = m_strdup(new->filename);
|
||||||
if (!(fullname = expand_twiddle(tmp)))
|
if (!(fullname = expand_twiddle(tmp)))
|
||||||
malloc_strcpy(&fullname, tmp);
|
malloc_strcpy(&fullname, tmp);
|
||||||
if ((new->file = open(fullname, O_WRONLY | O_CREAT | O_BINARY)) != -1)
|
if ((new->file = open(fullname, O_WRONLY | O_CREAT | O_BINARY, 0644)) != -1)
|
||||||
{
|
{
|
||||||
if ((new = dcc_create(nick, new->filename, passwd, 0, port? atol(port) : 0, DCC_REFILEREAD, (tdcc?DCC_TDCC:0) | DCC_TWOCLIENTS|DCC_OFFER, start_dcc_get)))
|
if ((new = dcc_create(nick, new->filename, passwd, 0, port? atol(port) : 0, DCC_REFILEREAD, (tdcc?DCC_TDCC:0) | DCC_TWOCLIENTS|DCC_OFFER, start_dcc_get)))
|
||||||
new->blocksize = blocksize;
|
new->blocksize = blocksize;
|
||||||
|
|||||||
Reference in New Issue
Block a user