mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-08 04:56:35 +01:00
add friend group invites
This commit is contained in:
@@ -400,7 +400,11 @@ int check_file_signature(const char *signature, size_t size, FILE *fp)
|
||||
void set_window_title(ToxWindow *self, const char *title, int len)
|
||||
{
|
||||
char cpy[TOXIC_MAX_NAME_LENGTH + 1];
|
||||
snprintf(cpy, sizeof(cpy), "%s", title);
|
||||
|
||||
if (self->is_groupchat) /* keep groupnumber in title */
|
||||
snprintf(cpy, sizeof(cpy), "%d %s", self->num, title);
|
||||
else
|
||||
snprintf(cpy, sizeof(cpy), "%s", title);
|
||||
|
||||
if (len > MAX_WINDOW_NAME_LENGTH) {
|
||||
strcpy(&cpy[MAX_WINDOW_NAME_LENGTH - 3], "...");
|
||||
|
||||
Reference in New Issue
Block a user