mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 01:53:02 +01:00
a couple fixes
This commit is contained in:
parent
95dfea8d29
commit
a9e5723ca4
@ -122,7 +122,7 @@ DeviceError init_devices()
|
|||||||
stringed_device_list += strlen( stringed_device_list ) + 1;
|
stringed_device_list += strlen( stringed_device_list ) + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start poll thread
|
// Start poll thread
|
||||||
if (pthread_mutex_init(&mutex, NULL) != 0)
|
if (pthread_mutex_init(&mutex, NULL) != 0)
|
||||||
return de_InternalError;
|
return de_InternalError;
|
||||||
|
@ -191,8 +191,11 @@ void cmd_avatar(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strlen(argv[1]) < 3)
|
/* turns the avatar off */
|
||||||
|
if (strlen(argv[1]) < 3) {
|
||||||
|
tox_set_avatar(m, TOX_AVATAR_FORMAT_NONE, (const uint8_t *) NULL, 0);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (argv[1][0] != '\"') {
|
if (argv[1][0] != '\"') {
|
||||||
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Path must be enclosed in quotes.");
|
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Path must be enclosed in quotes.");
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
#define _GNU_SOURCE /* needed for wcwidth() */
|
#define _GNU_SOURCE /* needed for wcwidth() */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
|
||||||
#include "toxic.h"
|
#include "toxic.h"
|
||||||
|
@ -259,7 +259,7 @@ int rename_logfile(char *src, char *dest, const char *selfkey, const char *other
|
|||||||
|
|
||||||
on_error:
|
on_error:
|
||||||
if (log_on)
|
if (log_on)
|
||||||
log_enable(dest, selfkey, otherkey, log, LOG_CHAT);
|
log_enable(src, selfkey, otherkey, log, LOG_CHAT);
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
#ifndef MISC_TOOLS_H
|
#ifndef MISC_TOOLS_H
|
||||||
#define MISC_TOOLS_H
|
#define MISC_TOOLS_H
|
||||||
|
|
||||||
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
#include "toxic.h"
|
#include "toxic.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user