diff --git a/gdb-port/top-level-parse.py b/gdb-port/top-level-parse.py
index 79684a5575759b0af5d49265beb6f741e7d2d0b6..962d35b405aaebd8245df49d3bfcbd6bb57fd6ca 100644
--- a/gdb-port/top-level-parse.py
+++ b/gdb-port/top-level-parse.py
@@ -404,7 +404,7 @@ class TopLevelParse:
 		if w == 0:
 			print("all tokens passed to display are zero-width")
 			return
-		charbuf = [[' '] * w for i in range(0,h+1)]
+		charbuf = [[' '] * w] * h
 		print("h=len(charbuf):", len(charbuf), "w :", w)
 		tokenmap_values_sorted = sorted(tokenmap_val_list, key=lambda token: (token['start'], token['end']))
 		print("len(tokenmap_values_sorted):", len(tokenmap_values_sorted), "rows:", numrows)