summaryrefslogtreecommitdiff
path: root/src/plugins/relay/relay-websocket.h
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-02-12 14:14:40 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-02-12 14:14:40 +0100
commitf7811b0ae206eed9d7c5697466d7da202f0212cc (patch)
treee8da55d1dc618c46726063a94eba7921d3beed29 /src/plugins/relay/relay-websocket.h
parent8d5dee9aa03692eaeb9150e72f13d8cfbabaaaa9 (diff)
downloadweechat-f7811b0ae206eed9d7c5697466d7da202f0212cc.zip
relay: fix crash when decoding a websocket frame
Diffstat (limited to 'src/plugins/relay/relay-websocket.h')
-rw-r--r--src/plugins/relay/relay-websocket.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/relay/relay-websocket.h b/src/plugins/relay/relay-websocket.h
index 8f813200d..ba361d0aa 100644
--- a/src/plugins/relay/relay-websocket.h
+++ b/src/plugins/relay/relay-websocket.h
@@ -28,8 +28,9 @@ extern char *relay_websocket_build_handshake (struct t_relay_client *client);
extern void relay_websocket_send_http (struct t_relay_client *client,
const char *http);
extern int relay_websocket_decode_frame (const unsigned char *buffer,
- int length,
- unsigned char *decoded);
+ unsigned long long length,
+ unsigned char *decoded,
+ unsigned long long *decoded_length);
extern char *relay_websocket_encode_frame (struct t_relay_client *client,
const char *buffer,
unsigned long long length,