diff options
author | Timo Sirainen <cras@irssi.org> | 2002-04-23 08:53:23 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-04-23 08:53:23 +0000 |
commit | 3f43df1db8a19c36fce75c38086fd320a4fdc53a (patch) | |
tree | 3cfd16953c2461d7087c46fd10328d51f1a3ada4 /src/irc | |
parent | 8969b6cc478392ffba6eb4a3786c8f6dc02f5f57 (diff) | |
download | irssi-3f43df1db8a19c36fce75c38086fd320a4fdc53a.zip |
warning fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2708 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/dcc/dcc-send.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/irc/dcc/dcc-send.c b/src/irc/dcc/dcc-send.c index b1f2c950..95c10fe8 100644 --- a/src/irc/dcc/dcc-send.c +++ b/src/irc/dcc/dcc-send.c @@ -168,8 +168,7 @@ static char *dcc_send_get_file(const char *fname) static void cmd_dcc_send(const char *data, IRC_SERVER_REC *server, WI_ITEM_REC *item) { - const char *fname; - char *target, *str; + char *target, *str, *fname; void *free_arg; char host[MAX_IP_LEN]; int hfile, port; @@ -228,7 +227,7 @@ static void cmd_dcc_send(const char *data, IRC_SERVER_REC *server, cmd_param_error(CMDERR_ERRNO); } - fname = g_basename(fname); + fname = (char *) g_basename(fname); /* Replace all the spaces with underscore so that lesser intellgent clients can communicate.. */ |