summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-13 22:28:25 -0400
committerirungentoo <irungentoo@gmail.com>2013-07-13 22:28:25 -0400
commit96b8cb1c43a767c586fb1770fdfb70003de186c0 (patch)
treea1c375766aaee54e7b785e660704254a0c714379
parent383630b3d4aee4654e95e9952dc1debc8d339916 (diff)
Fixed @ appearing in messages.
-rw-r--r--core/Messenger.c2
-rw-r--r--other/DHT_bootstrap.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/core/Messenger.c b/core/Messenger.c
index 37e369fa..2e381f81 100644
--- a/core/Messenger.c
+++ b/core/Messenger.c
@@ -282,7 +282,7 @@ static void doFriends()
282 { 282 {
283 if(temp[0] == 64) 283 if(temp[0] == 64)
284 { 284 {
285 (*friend_message)(i, temp, len); 285 (*friend_message)(i, temp + 1, len - 1);
286 } 286 }
287 } 287 }
288 else 288 else
diff --git a/other/DHT_bootstrap.c b/other/DHT_bootstrap.c
index 6be90875..3e8858dc 100644
--- a/other/DHT_bootstrap.c
+++ b/other/DHT_bootstrap.c
@@ -2,8 +2,10 @@
2 * 2 *
3 * A simple DHT boostrap server for tox. 3 * A simple DHT boostrap server for tox.
4 * 4 *
5 * Build command: gcc -O2 -Wall -D VANILLA_NACL -o bootstrap_server ../core/Lossless_UDP.c ../core/network.c ../core/net_crypto.c ../core/Messenger.c ../core/DHT.c ../nacl/build/${HOSTNAME%.*}/lib/amd64/{cpucycles.o,libnacl.a,randombytes.o} DHT_bootstrap.c 5 * Build commands (use one or the other):
6 * 6 * gcc -O2 -Wall -D VANILLA_NACL -o bootstrap_server ../core/Lossless_UDP.c ../core/network.c ../core/net_crypto.c ../core/Messenger.c ../core/DHT.c ../nacl/build/${HOSTNAME%.*}/lib/amd64/{cpucycles.o,libnacl.a,randombytes.o} DHT_bootstrap.c
7 *
8 * gcc -O2 -Wall -o bootstrap_server ../core/Lossless_UDP.c ../core/network.c ../core/net_crypto.c ../core/Messenger.c ../core/DHT.c -lsodium DHT_bootstrap.c
7 */ 9 */
8 10
9#include "../core/DHT.h" 11#include "../core/DHT.h"