� wrote: > The current 5000 configline array makes powertop crash for me. Increase the > array to the double size. > > Signed-off-by: Erik Andrén <[email protected]> > --- > config.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/config.c b/config.c > index d5818ea..adf01c1 100644 > --- a/config.c > +++ b/config.c > @@ -33,7 +33,7 @@ > #include "powertop.h" > > /* static arrays are not nice programming.. but they're easy */ > -static char configlines[5000][100]; > +static char configlines[10000][100]; > static int configcount; > > static void read_kernel_config(void) >
merged. also added a check to make sure that we don't read anything beyond 10k lines, as that would just cause another overflow. Auke _______________________________________________ Power mailing list [email protected] http://www.bughost.org/mailman/listinfo/power
