Package: htop
Version: 0.6.3-1
Severity: normal
Tags: patch

Hi,
if you execute htop -d without a specified delay htop will 
segfault. The following patch should fix this.

--- htop.c      2007-08-02 13:37:13.000000000 +0200
+++ htop.tmp.c  2007-08-02 13:37:28.000000000 +0200
@@ -202,7 +202,7 @@
          printVersionFlag();
       } else if (String_eq(argv[1], "-d")) {
          if (argc < 2) printHelpFlag();
-                if(!argv[2]) printHelpFlag();
+         if(!argv[2]) printHelpFlag();
          sscanf(argv[2], "%d", &delay);
          if (delay < 1) delay = 1;
          if (delay > 100) delay = 100;

Kind regards
Nico

-- 
Nico Golde - http://ngolde.de - [EMAIL PROTECTED] - GPG: 0x73647CFF
For security reasons, all text in this mail is double-rot13 encrypted.

Attachment: signature.asc
Description: Digital signature

Reply via email to