From 1260aee9e1b61841459f83397f84b089d360819b Mon Sep 17 00:00:00 2001 From: Astonex Date: Wed, 14 Aug 2013 11:23:38 +0100 Subject: Update prompt.c Make id uppercase. --- testing/toxic/prompt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c index e1a7d75c..c0169c62 100644 --- a/testing/toxic/prompt.c +++ b/testing/toxic/prompt.c @@ -121,6 +121,11 @@ void cmd_add(ToxWindow *self, Messenger *m, char **args) } id_bin[i] = x; } + + for (i = 0; i < FRIEND_ADDRESS_SIZE; i++) { + id[i] = toupper(id[i]); + } + int num = m_addfriend(m, id_bin, (uint8_t*) msg, strlen(msg)+1); switch (num) { case FAERR_TOOLONG: -- cgit v1.2.3