summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pr.c b/src/pr.c
index e49fa8505..8d60a7f9a 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -1693,7 +1693,7 @@ init_header (char *filename, int desc)
{
buf = xmalloc (INT_BUFSIZE_BOUND (long int)
+ MAX (10, INT_BUFSIZE_BOUND (int)));
- sprintf (buf, "%ld.9d", (long int) s, ns);
+ sprintf (buf, "%ld.%9d", (long int) s, ns);
}
else
{