File gcc46.diff of Package fsvs

--- src/helper.c
+++ src/helper.c
@@ -1738,7 +1738,7 @@
 {
 	static int last=0;
 	/* Sadly GCC doesn't statically solve sizeof(rev)*log(10)/log(2) ... */
-	static char buffers[2][(int)(sizeof(rev)*3.32)+3];
+	static char buffers[2][(sizeof(svn_revnum_t)*4)+3];
 
 	last++;
 	if (last>= sizeof(buffers)/sizeof(buffers[0])) last=0;
--- src/options.c
+++ src/options.c
@@ -740,8 +740,7 @@
  * loop via \c getenv() over all options? */
 char *opt__variable_from_option(enum opt__settings_e which)
 {
-	static char buffer[ strlen(ENV_PREFIX) + 
-		sizeof(opt__list[0].name) + 1] = ENV_PREFIX;
+	static char buffer[ sizeof(ENV_PREFIX) + 1 + sizeof(struct opt__list_t) + 1] = ENV_PREFIX;
 	char * const target=buffer+strlen(ENV_PREFIX);
 	int i;
 
--- src/status.c
+++ src/status.c
@@ -451,7 +451,7 @@
 	time_t now;
 	int print;
 	const int bar_chart_width=20;
-	static const char bar_chart[bar_chart_width+1]="###################>";
+	static const char bar_chart[20+1]="###################>";
 	float pct;
 
 
openSUSE Build Service is sponsored by