mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 06:23:02 +01:00
missing format arg
This commit is contained in:
parent
8481b50f97
commit
083ca2f3b7
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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.";
|
||||||
|
Loading…
Reference in New Issue
Block a user