summaryrefslogtreecommitdiff
path: root/regex/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'regex/main.c')
-rw-r--r--regex/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regex/main.c b/regex/main.c
index beed2738b1d..4b607f401ca 100644
--- a/regex/main.c
+++ b/regex/main.c
@@ -103,7 +103,7 @@ char *argv[];
len = (int)(subs[0].rm_eo - subs[0].rm_so);
if (subs[0].rm_so != -1) {
if (len != 0)
- printf("match `%.*s'\n", len,
+ printf("match `%.*s'\n", (int)len,
argv[optind] + subs[0].rm_so);
else
printf("match `'@%.1s\n",