summaryrefslogtreecommitdiffstats
path: root/libsmartcols/samples/wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'libsmartcols/samples/wrap.c')
-rw-r--r--libsmartcols/samples/wrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsmartcols/samples/wrap.c b/libsmartcols/samples/wrap.c
index 2a476fbe9..96cdff31c 100644
--- a/libsmartcols/samples/wrap.c
+++ b/libsmartcols/samples/wrap.c
@@ -46,7 +46,7 @@ static char *gen_text(const char *prefix, const char *sub_prefix, char *buf, siz
{
int x = snprintf(buf, sz, "%s-%s-", prefix, sub_prefix);
- for ( ; x < sz - 1; x++)
+ for ( ; (size_t)x < sz - 1; x++)
buf[x] = *prefix;
buf[x++] = 'x';