diff options
author | DarkSER <DarkSER@gmx.net> | 2013-08-06 22:06:17 +0200 |
---|---|---|
committer | DarkSER <DarkSER@gmx.net> | 2013-08-06 22:06:17 +0200 |
commit | 14413c472460d6fadfeec98c00ca6d4c96817dc4 (patch) | |
tree | a48cd71dc1835801584f05c3721dcd75286268f9 /testing/nTox_win32.c | |
parent | fc5a2f53df06bfba185ad9868970e1fecfa0fc06 (diff) |
fixed print_statuschange & m_set_userstatus usage in nTox_win32.c
Diffstat (limited to 'testing/nTox_win32.c')
-rw-r--r-- | testing/nTox_win32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/nTox_win32.c b/testing/nTox_win32.c index dbbd0f6e..2e6451f3 100644 --- a/testing/nTox_win32.c +++ b/testing/nTox_win32.c | |||
@@ -86,7 +86,7 @@ void print_nickchange(int friendnumber, uint8_t *string, uint16_t length) | |||
86 | printf(msg); | 86 | printf(msg); |
87 | } | 87 | } |
88 | 88 | ||
89 | void print_statuschange(int friendnumber, USERSTATUS_KIND kind, uint8_t *string, uint16_t length) | 89 | void print_statuschange(int friendnumber, uint8_t *string, uint16_t length) |
90 | { | 90 | { |
91 | char name[MAX_NAME_LENGTH]; | 91 | char name[MAX_NAME_LENGTH]; |
92 | getname(friendnumber, (uint8_t*)name); | 92 | getname(friendnumber, (uint8_t*)name); |
@@ -275,7 +275,7 @@ void change_status(int savetofile) | |||
275 | } | 275 | } |
276 | 276 | ||
277 | status[i-3] = 0; | 277 | status[i-3] = 0; |
278 | m_set_userstatus(status, strlen((char*)status)); | 278 | m_set_userstatus(m_get_userstatus_kind(0), status, strlen((char*)status)); |
279 | char numstring[100]; | 279 | char numstring[100]; |
280 | sprintf(numstring, "\n[i] changed status to %s\n\n", (char*)status); | 280 | sprintf(numstring, "\n[i] changed status to %s\n\n", (char*)status); |
281 | printf(numstring); | 281 | printf(numstring); |
@@ -407,7 +407,7 @@ int main(int argc, char *argv[]) | |||
407 | while (fgets(line, MAX_USERSTATUS_LENGTH, status_file) != NULL) { | 407 | while (fgets(line, MAX_USERSTATUS_LENGTH, status_file) != NULL) { |
408 | sscanf(line, "%s", (char*)status); | 408 | sscanf(line, "%s", (char*)status); |
409 | } | 409 | } |
410 | m_set_userstatus(status, strlen((char*)status)+1); | 410 | m_set_userstatus(m_get_userstatus_kind(0), status, strlen((char*)status)+1); |
411 | statusloaded = 1; | 411 | statusloaded = 1; |
412 | printf("%s\n", status); | 412 | printf("%s\n", status); |
413 | fclose(status_file); | 413 | fclose(status_file); |