1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-26 15:53:26 +01:00

missing format arg

This commit is contained in:
Jfreegman 2014-05-25 13:31:44 -04:00
parent 8481b50f97
commit 083ca2f3b7
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
2 changed files with 3 additions and 3 deletions

View File

@ -209,7 +209,7 @@ int device_set(ToxWindow *self, _Devices type, long int selection)
uint8_t *s_type = type == input ? "input" : "output"; uint8_t *s_type = type == input ? "input" : "output";
if ( selection < 0 || selection >= ASettins.device[type].size ) { if ( selection < 0 || selection >= ASettins.device[type].size ) {
snprintf(str, sizeof(str), "Cannot set audio %s device: Invalid index: %d", s_type); snprintf(str, sizeof(str), "Cannot set audio %s device: Invalid index: %ld", s_type, selection);
line_info_add(self, NULL, NULL, NULL, str, SYS_MSG, 0, 0); line_info_add(self, NULL, NULL, NULL, str, SYS_MSG, 0, 0);
return -1; return -1;
} }
@ -217,7 +217,7 @@ int device_set(ToxWindow *self, _Devices type, long int selection)
ASettins.device[type].index = selection; ASettins.device[type].index = selection;
if ( device_open(self, type) != 0 ) { if ( device_open(self, type) != 0 ) {
snprintf(str, sizeof(str), "Cannot open audio %s device index: %d", s_type); snprintf(str, sizeof(str), "Cannot open audio %s device index: %ld", s_type, selection);
line_info_add(self, NULL, NULL, NULL, str, SYS_MSG, 0, 0); line_info_add(self, NULL, NULL, NULL, str, SYS_MSG, 0, 0);
return -1; return -1;
} }

View File

@ -260,7 +260,7 @@ static void chat_onFileSendRequest(ToxWindow *self, Tox *m, int32_t num, uint8_t
} }
strcat(filename, d); strcat(filename, d);
filename[len + d_len] = '\0';; filename[len + d_len] = '\0';
if (count > 999) { if (count > 999) {
errmsg = "Error saving file to disk."; errmsg = "Error saving file to disk.";