Fixed some portability issues with wofi

This commit is contained in:
Scoopta
2019-11-03 20:20:00 -08:00
parent ea7893eb12
commit 97dd534c97
2 changed files with 3 additions and 3 deletions

View File

@@ -250,7 +250,7 @@ static void execute_action(char* mode, const gchar* cmd) {
if(strstr(line, cmd) != NULL) {
uint64_t count = strtol(line, NULL, 10) + 1;
char num[6];
snprintf(num, 5, "%lu", count);
snprintf(num, 5, "%" PRIu64, count);
node->line = utils_concat(4, num, " ", cmd, "\n");
inc_count = true;
} else {