[PATCH] Segfault fixed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux