diff options
-rw-r--r-- | testing/toxic/prompt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c index bc4b8545..fb8a5090 100644 --- a/testing/toxic/prompt.c +++ b/testing/toxic/prompt.c | |||
@@ -122,6 +122,11 @@ void cmd_add(ToxWindow *self, Messenger *m, char **args) | |||
122 | } | 122 | } |
123 | id_bin[i] = x; | 123 | id_bin[i] = x; |
124 | } | 124 | } |
125 | |||
126 | for (i = 0; i < FRIEND_ADDRESS_SIZE; i++) { | ||
127 | id[i] = toupper(id[i]); | ||
128 | } | ||
129 | |||
125 | int num = m_addfriend(m, id_bin, (uint8_t*) msg, strlen(msg)+1); | 130 | int num = m_addfriend(m, id_bin, (uint8_t*) msg, strlen(msg)+1); |
126 | switch (num) { | 131 | switch (num) { |
127 | case FAERR_TOOLONG: | 132 | case FAERR_TOOLONG: |