diff options
author | Niels Horn <niels.horn@slackbuilds.org> | 2011-04-05 11:21:42 -0300 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-04-05 18:54:56 -0500 |
commit | adbaa8e1da1f317b41a81365df63622fc5dbe537 (patch) | |
tree | b60623f474507237a2c7eb42baa7c2a943057597 /system/fsvs/fsvs_gcc452.patch | |
parent | 0cace0fafa9eae74a4a10998d11cd6eb70cfe5f0 (diff) | |
download | slackbuilds-adbaa8e1da1f317b41a81365df63622fc5dbe537.tar.gz |
system/fsvs: Re-added/Updated for version 1.2.3 + Patched
This includes an ugly patch to work around a bug in
gcc-4.5.2 until that is solved.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'system/fsvs/fsvs_gcc452.patch')
-rw-r--r-- | system/fsvs/fsvs_gcc452.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/system/fsvs/fsvs_gcc452.patch b/system/fsvs/fsvs_gcc452.patch new file mode 100644 index 0000000000..f708c8afea --- /dev/null +++ b/system/fsvs/fsvs_gcc452.patch @@ -0,0 +1,33 @@ +--- fsvs-1.2.3/src/helper.c 2010-02-16 08:20:50.000000000 -0200 ++++ fsvs-1.2.3_patched/src/helper.c 2011-04-05 10:56:59.000000000 -0300 +@@ -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][(int)(sizeof(rev)*4)+3]; + + last++; + if (last>= sizeof(buffers)/sizeof(buffers[0])) last=0; +--- fsvs-1.2.3/src/options.c 2010-02-13 09:49:16.000000000 -0200 ++++ fsvs-1.2.3_patched/src/options.c 2011-04-05 10:58:28.000000000 -0300 +@@ -740,7 +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) + ++ static char buffer[ 5 + + sizeof(opt__list[0].name) + 1] = ENV_PREFIX; + char * const target=buffer+strlen(ENV_PREFIX); + int i; +--- fsvs-1.2.3/src/status.c 2010-02-13 15:56:59.000000000 -0200 ++++ fsvs-1.2.3_patched/src/status.c 2011-04-05 10:59:00.000000000 -0300 +@@ -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; + + |