Mercurial > hg > nnchat
comparison main.c @ 696:07b5f729252f
Fix a format string.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 10 Jan 2020 00:16:59 +0200 |
parents | 788a58dab07a |
children | adac0e9f2810 |
comparison
equal
deleted
inserted
replaced
695:f1df1cf69a38 | 696:07b5f729252f |
---|---|
1040 else | 1040 else |
1041 { | 1041 { |
1042 // Just list whomever is in ignore now | 1042 // Just list whomever is in ignore now |
1043 th_llist_t *user = *list; | 1043 th_llist_t *user = *list; |
1044 size_t nuser = th_llist_length(*list); | 1044 size_t nuser = th_llist_length(*list); |
1045 char *result = th_strdup_printf("Users on %s list (%d): ", listname, nuser); | 1045 char *result = th_strdup_printf("Users on %s list (%" PRIu_SIZE_T "): ", |
1046 listname, nuser); | |
1046 while (user != NULL) | 1047 while (user != NULL) |
1047 { | 1048 { |
1048 if (user->data != NULL) | 1049 if (user->data != NULL) |
1049 { | 1050 { |
1050 th_pstr_printf(&result, "%s'%s'", result, (char *) user->data); | 1051 th_pstr_printf(&result, "%s'%s'", result, (char *) user->data); |