Doug Torrance
624b2898fe
wmgeneral: Don't call free on pointers we haven't malloced.
...
Could cause occasional segfaults.
2015-05-20 10:44:41 +01:00
Doug Torrance
a9b73f2fd6
wmgeneral: Fix segfault if newline encountered in parse_rcfile.
...
From a patch for wmppp.app by Chris Gray <cgray@tribsoft.com> submitted to
Debian to fix several bugs [1].
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=27997
2015-05-20 10:44:41 +01:00
Doug Torrance
cd30d4127d
wmgeneral: Add proper copyright headers; fix changelog formatting.
2015-05-20 10:44:41 +01:00
Doug Torrance
afd3d56aea
wmgeneral: Use #includes from include-what-you-use.
2015-05-20 10:44:41 +01:00
Doug Torrance
6b1ed40882
wmgeneral: Use field width limits for scanf.
...
This fixes "(portability) scanf without field width limits can crash with
huge input data on some versions of libc" warning from cppcheck.
We choose 10 as the field width limit as it is the number of characters in
2^31-1, the largest int.
2015-05-20 10:44:41 +01:00
Doug Torrance
a0f16b945a
wmgeneral: Reduce scope of several variables.
...
Also took the opportunity to fix some whitespace formatting.
2015-05-20 10:44:41 +01:00
Doug Torrance
6dc4716c29
wmgeneral: Merge 2003-10-10 version from wmmon and wmtime.
...
Note that this was a fork of the earlier 1998-05-02 version and didn't
contain the later changes. Therefore we merge the best of both versions.
wmtime had some additional unnecessary dummy variables, so we use the wmmon
version.
2015-05-20 10:44:41 +01:00
Doug Torrance
612921ae43
Remove trailing whitespace.
2014-10-05 19:18:49 +01:00
Rodolfo García Peñas (kix)
996f7c41ad
wmmon: remove wmgeneral.c typecasting warning
...
wmmon: Added -f to rm
The -f argument don't stop the make process if the file don't
exists.
2011-12-18 14:31:52 +00:00
Rodolfo García Peñas (kix)
7e6c32e926
wmmon: debian patches applied to upstream
2011-12-18 14:30:31 +00:00
Rodolfo García Peñas (kix)
b603570f4a
wmmon: Official release of wmmon 1.0b2
2011-12-18 14:30:15 +00:00