[PATCH] Segfault fixed

Kronos kronos at kronoz.cjb.net
Mon Aug 5 18:56:08 CEST 2002


Running  "sensors -c"  without any  argument gives  a segfault. This  is
caused by a wrong optstring passed to getopt_long. The fix is trivial:


--- main.c~	Wed Jul 10 13:57:13 2002
+++ main.c	Mon Aug  5 18:50:57 2002
@@ -158,7 +158,7 @@
   do_sets = 0;
   hide_adapter = 0;
   while (1) {
-    c = getopt_long(argc,argv,"hsvfAcu:",long_opts,NULL);
+    c = getopt_long(argc,argv,"hsvfAc:u:",long_opts,NULL);
     if (c == EOF)
       break;
     switch(c) {

ciao,
Kronos
-- 
Home: http://kronoz.cjb.net
Windows /win'dohz/ n. : thirty-two  bit extension and graphical shell to
a sixteen  bit patch to an  eight bit operating system  originally coded
for a  four bit microprocessor  which was  written by a  two-bit company
that can't stand a bit of competition.



More information about the lm-sensors mailing list