aboutsummaryrefslogtreecommitdiff
path: root/roman.c
diff options
context:
space:
mode:
Diffstat (limited to 'roman.c')
-rw-r--r--roman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roman.c b/roman.c
index 6606e25..d669cc2 100644
--- a/roman.c
+++ b/roman.c
@@ -52,7 +52,7 @@ dectoroman(int n, char *buf, ulong len)
n -= decimal[i];
}
}
- buf[len-1] = 0;
+ buf[o] = 0;
return 0;
}