diff options
| author | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2018-09-08 16:47:22 +0200 | 
|---|---|---|
| committer | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2018-09-08 16:47:22 +0200 | 
| commit | f8d5fc70290d19441ea513a10dbfe8cc074571f7 (patch) | |
| tree | 3dad42fab8a9a9b909c878d54a7343a1ba170c47 | |
| parent | b6bf6a1fb863acd4275bbc5670f4918b80edea4e (diff) | |
Fix conversion specifiers in "Failed to {malloc,strdup}" messages.
| -rw-r--r-- | src/utils.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/utils.c b/src/utils.c index 445d6b0..b086900 100644 --- a/src/utils.c +++ b/src/utils.c @@ -74,7 +74,7 @@ xmalloc(size_t size)  {          void *result = malloc(size);          if (!result) { -                msg(MSG_CRITICAL, "Failed to malloc %zi bytes\n", size); +                msg(MSG_CRITICAL, "Failed to malloc %zu bytes\n", size);                  exit(EXIT_FAILURE);          }          return result; @@ -86,7 +86,7 @@ xstrdup(const char *s)  {  	char *result = strdup(s);  	if (!result) { -		msg(MSG_CRITICAL, "Failed to strdup %zi bytes\n", strlen(s)); +		msg(MSG_CRITICAL, "Failed to strdup %zu bytes\n", strlen(s));  		exit(EXIT_FAILURE);  	}  	return result; | 
