1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 07:33:25 +01:00

namelength should be signed, -Werror is probably overkill

This commit is contained in:
Jfreegman 2014-07-06 22:31:11 -04:00
parent a009fbf20c
commit 00e6546f0c
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ MANFILES = toxic.1 toxic.conf.5
LIBS = libtoxcore ncursesw
CFLAGS = -std=gnu99 -pthread -Wall -Werror
CFLAGS = -std=gnu99 -pthread -Wall
CFLAGS += -DTOXICVER="\"$(VERSION)\"" -DHAVE_WIDECHAR -D_XOPEN_SOURCE_EXTENDED
CFLAGS += -DPACKAGE_DATADIR="\"$(abspath $(DATADIR))\""
CFLAGS += $(USER_CFLAGS)

View File

@ -46,7 +46,7 @@ struct LastOnline {
typedef struct {
char name[TOX_MAX_NAME_LENGTH];
uint16_t namelength;
int namelength;
char statusmsg[TOX_MAX_STATUSMESSAGE_LENGTH];
uint16_t statusmsg_len;
char groupchat_key[TOX_CLIENT_ID_SIZE];