diff --git a/src/srun/io.c b/src/srun/io.c
index 7cc2f4f1ef1223f742f437d4cf465b8aaea79eff..7463c8fa6055a00a69c7d8dfeabba6f832bc52fb 100644
--- a/src/srun/io.c
+++ b/src/srun/io.c
@@ -440,6 +440,7 @@ static int
 _wid(int n)
 {
 	int width = 1;
+	n--;	/* For zero origin */
 	while (n /= 10)
 		width++;
 	return width;