diff options
author | Astonex <softukitu@gmail.com> | 2013-08-14 11:23:38 +0100 |
---|---|---|
committer | Astonex <softukitu@gmail.com> | 2013-08-14 11:23:38 +0100 |
commit | 1260aee9e1b61841459f83397f84b089d360819b (patch) | |
tree | d8069deaaab4be1925ebdea22b93f4fef5c82580 /testing/toxic/prompt.c | |
parent | a8d1f86f8ba9b39c8f913bce99a2282d81235cc9 (diff) |
Update prompt.c
Make id uppercase.
Diffstat (limited to 'testing/toxic/prompt.c')
-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 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) | |||
121 | } | 121 | } |
122 | id_bin[i] = x; | 122 | id_bin[i] = x; |
123 | } | 123 | } |
124 | |||
125 | for (i = 0; i < FRIEND_ADDRESS_SIZE; i++) { | ||
126 | id[i] = toupper(id[i]); | ||
127 | } | ||
128 | |||
124 | int num = m_addfriend(m, id_bin, (uint8_t*) msg, strlen(msg)+1); | 129 | int num = m_addfriend(m, id_bin, (uint8_t*) msg, strlen(msg)+1); |
125 | switch (num) { | 130 | switch (num) { |
126 | case FAERR_TOOLONG: | 131 | case FAERR_TOOLONG: |