diff src/redisplay.c @ 280:7df0dd720c89 r21-0b38

Import from CVS: tag r21-0b38
author cvs
date Mon, 13 Aug 2007 10:32:22 +0200
parents 6330739388db
children c42ec1d1cded
line wrap: on
line diff
--- a/src/redisplay.c	Mon Aug 13 10:31:30 2007 +0200
+++ b/src/redisplay.c	Mon Aug 13 10:32:22 2007 +0200
@@ -6319,18 +6319,11 @@
       /* print the current column */
     case 'c':
       {
-	int col = current_column (b) + (column_number_start_at_one != 0);
+	int col = current_column (b) + !!column_number_start_at_one;
 	int temp = col;
 	int size = 2;
-	char *buf;
-
-	while (temp >= 10)
-	  {
-	    temp /= 10;
-	    size++;
-	  }
-
-	buf = alloca_array (char, size);
+	char buf[32];
+
 	long_to_string (buf, col);
 
 	Dynarr_add_many (mode_spec_bufbyte_string,