bugfix: overflow and some QA issues
commit49ac2d1c699e9577696aa15d6e0b926ad56be9b9
authorStefan Bender <stefan@bender-suhl.de>
Wed, 20 Oct 2010 19:25:52 +0000 (20 21:25 +0200)
committerStefan Bender <stefan@bender-suhl.de>
Wed, 20 Oct 2010 20:00:53 +0000 (20 22:00 +0200)
treece36a1aa0df61f83fdb2bf588ed59f00456b4370
parent6e76dd4c4ac2fbb81e0ddfefa57cd493022d094e
bugfix: overflow and some QA issues

Fixes gentoo bug #338971

Patch from Kevin Pyle via Walther Maldonado (walther.md at gmail).
Modified patch to gkrellm-bgchanger-0.1.7 to fix overflow
and some QA issues

This patch addresses several issues with the upstream package:

- CC not set, so the simple name 'cc' was used.
  This disrupts cross-compilation.
- LDFLAGS misspelled as LFLAGS, so user LDFLAGS were not passed.
- CFLAGS had -O3 appended, overriding user's chosen -O level.
- Improper length passed to fgets, as reported in comment #0.

Bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=338971
Reported-by: Walther Maldonado (walther.md at gmail.com)
Makefile
gkrellmbgchg.c