From 23c26a75a1f4d043284f72de64e7f0686fbdf047 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Fri, 27 Feb 2015 18:07:43 -0500 Subject: [PATCH] Pad version with '0' instead of nulls This produces a more usable output for scripts. --- re2c/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re2c/main.cc b/re2c/main.cc index cb07d15e..fc6f9109 100644 --- a/re2c/main.cc +++ b/re2c/main.cc @@ -330,7 +330,7 @@ int main(int argc, char *argv[]) { vernum.insert(4, "0"); } - vernum.resize(6); + vernum.resize(6, '0'); cout << vernum << endl; return 2; } -- 2.40.0