[GRASS5] (Text based) startup screen patch

Glynn Clements glynn.clements at virgin.net
Tue Aug 10 06:13:13 EDT 2004


Markus Neteler wrote:

> Hi,
> 
> IMHO the line length of location/mapset in the text based startup
> screen is too short.
> 
> I suggest attached patch to 5.3 (linked into 5.7):
>  src/general/init/set_data.diff

Actually, I've had the appended patch lying around for a while; it's
essentially the same thing, only more so.

> Any problems (it is still shorter than the  variable definition)?

I don't think so.

-- 
Glynn Clements <glynn.clements at virgin.net>

Index: src/general/init/set_data.c
===================================================================
RCS file: /grassrepository/grass/src/general/init/set_data.c,v
retrieving revision 1.5
diff -u -r1.5 set_data.c
--- src/general/init/set_data.c	13 Mar 2003 08:22:10 -0000	1.5
+++ src/general/init/set_data.c	10 Aug 2004 10:12:45 -0000
@@ -53,7 +53,7 @@
 int main (int argc, char *argv[])
 {
     char version[80];
-    char gisdbase[51]   ;
+    char gisdbase[70];
     char location_name[41]   ;
     char location[1024]  ;
     char mapset[41]   ;
@@ -102,14 +102,14 @@
 
 	line++;
 	V_line (line, loc_text);
-	V_ques (location_name, 's', line++, 12, 14);
+	V_ques (location_name, 's', line++, 10, 28);
 
 	V_line (line, map_text);
-	V_ques (mapset, 's', line++, 12, 14);
+	V_ques (mapset, 's', line++, 10, 28);
 
 	line++;
 	V_line (line, "DATABASE:");
-	V_ques (gisdbase, 's', line++, 12, sizeof(gisdbase) - 1);
+	V_ques (gisdbase, 's', line++, 10, sizeof(gisdbase) - 1);
 
 	V_intrpt_ok();
 	if (!V_call())




More information about the grass-dev mailing list