summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/cal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/cal.c b/coreutils/cal.c
index a50f54d..7861562 100644
--- a/coreutils/cal.c
+++ b/coreutils/cal.c
@@ -324,7 +324,7 @@ static char *build_row(char *p, int *dp)
do {
if ((day = *dp++) != SPACE) {
if (julian) {
- *++p;
+ ++p;
if (day >= 100) {
*p = '0';
p[-1] = (day / 100) + '0';