mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge pull request #360 from DarkSER/master
fixed print_statuschange & m_set_userstatus usage in nTox_win32.c
This commit is contained in:
commit
e760c9eeff
|
@ -86,7 +86,7 @@ void print_nickchange(int friendnumber, uint8_t *string, uint16_t length)
|
|||
printf(msg);
|
||||
}
|
||||
|
||||
void print_statuschange(int friendnumber, USERSTATUS_KIND kind, uint8_t *string, uint16_t length)
|
||||
void print_statuschange(int friendnumber, uint8_t *string, uint16_t length)
|
||||
{
|
||||
char name[MAX_NAME_LENGTH];
|
||||
getname(friendnumber, (uint8_t*)name);
|
||||
|
@ -275,7 +275,7 @@ void change_status(int savetofile)
|
|||
}
|
||||
|
||||
status[i-3] = 0;
|
||||
m_set_userstatus(status, strlen((char*)status));
|
||||
m_set_userstatus(USERSTATUS_KIND_RETAIN, status, strlen((char*)status));
|
||||
char numstring[100];
|
||||
sprintf(numstring, "\n[i] changed status to %s\n\n", (char*)status);
|
||||
printf(numstring);
|
||||
|
@ -407,7 +407,7 @@ int main(int argc, char *argv[])
|
|||
while (fgets(line, MAX_USERSTATUS_LENGTH, status_file) != NULL) {
|
||||
sscanf(line, "%s", (char*)status);
|
||||
}
|
||||
m_set_userstatus(status, strlen((char*)status)+1);
|
||||
m_set_userstatus(USERSTATUS_KIND_RETAIN, status, strlen((char*)status)+1);
|
||||
statusloaded = 1;
|
||||
printf("%s\n", status);
|
||||
fclose(status_file);
|
||||
|
|
Loading…
Reference in New Issue
Block a user