diff options
Diffstat (limited to 'src/matrix.c')
| -rw-r--r-- | src/matrix.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/matrix.c b/src/matrix.c index 90132af..790f0f5 100644 --- a/src/matrix.c +++ b/src/matrix.c @@ -1,5 +1,6 @@ #include "matrix.h"
+#include <stdio.h>
#include <mjson.h>
@@ -11,8 +12,8 @@ bool
MatrixClientInit(
MatrixClient * client,
- char * server, int serverLen
-) {
+ char * server, int serverLen)
+{
strcpy_s(
client->server,
SERVER_SIZE,
@@ -29,8 +30,8 @@ MatrixClientLoginPassword( MatrixClient * client,
char * username, int usernameLen,
char * password, int passwordLen,
- char * displayName, int displayNameLen
-) {
+ char * displayName, int displayNameLen)
+{
static char requestBuffer[LOGIN_REQUEST_SIZE];
int requestLen =
|
