diff options
author | Ingo Bürk <admin@airblader.de> | 2018-06-22 13:55:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-22 13:55:09 +0200 |
commit | 4d3344ab9cd68bad5faf4ed3dad185dfcacb1e3d (patch) | |
tree | 66846b5f6023291fda2d72fe523d4ee0614d2a1f /i3status.c | |
parent | 64fd6e10478cabd0e2f9b554b71971a865c02d60 (diff) | |
parent | c221b4d331d46d07fe24afc78e4eeb021556d013 (diff) |
Merge pull request #290 from duskCoder/changes
Fix potential issues & avoid unnecessary instructions
Diffstat (limited to 'i3status.c')
-rw-r--r-- | i3status.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -106,7 +106,7 @@ static bool path_exists(const char *path) { static void *scalloc(size_t size) { void *result = calloc(size, 1); - exit_if_null(result, "Error: out of memory (calloc(%zd))\n", size); + exit_if_null(result, "Error: out of memory (calloc(%zu))\n", size); return result; } @@ -142,7 +142,7 @@ static int parse_min_width(cfg_t *context, cfg_opt_t *option, const char *value, long num = strtol(value, &end, 10); if (num < 0) - die("Invalid min_width attribute found in section %s, line %d: %d\n" + die("Invalid min_width attribute found in section %s, line %d: %ld\n" "Expected positive integer or string\n", context->name, context->line, num); else if (num == LONG_MIN || num == LONG_MAX || (end && *end != '\0')) |