aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2013-02-17 19:00:20 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2013-02-17 19:00:20 +0100
commit8c79541e7c1034d3afded39b694b6c8ce686bf44 (patch)
tree373c02a259951169afbfb918ce3fe983ee333aab /colorize.c
parentb914c21124bb0cb887265f11bf50473c6f3b4e30 (diff)
downloadcolorize-8c79541e7c1034d3afded39b694b6c8ce686bf44.tar.gz
colorize-8c79541e7c1034d3afded39b694b6c8ce686bf44.tar.bz2
Use size_t instead of unsigned integer type
Diffstat (limited to 'colorize.c')
-rw-r--r--colorize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/colorize.c b/colorize.c
index c840080..26b1a18 100644
--- a/colorize.c
+++ b/colorize.c
@@ -906,7 +906,7 @@ free_wrap (void **ptr)
static char *
strdup_wrap (const char *str)
{
- const unsigned int len = strlen (str) + 1;
+ const size_t len = strlen (str) + 1;
char *p = xmalloc (len);
strncpy (p, str, len);
return p;
@@ -915,7 +915,7 @@ strdup_wrap (const char *str)
static char *
str_concat (const char *str1, const char *str2)
{
- const unsigned long len = strlen (str1) + strlen (str2) + 1;
+ const size_t len = strlen (str1) + strlen (str2) + 1;
char *p, *str;
p = str = xmalloc (len);