Mailing List archive

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

[vdr] Re: Annoying bug in graphlcd PlugIn



On Tue, May 20, 2003 at 11:04:34PM +0200, Sascha Volkenandt wrote:

[...]
> > but feel free to write a routine which parses the hex value
> > and send it to carsten.
>
> Maybe I will do just that ;)))

Just to save your time, Sascha :)

--- graphlcd.c.orig	Thu May  8 22:59:42 2003
+++ graphlcd.c	Wed May 21 11:01:24 2003
@@ -18,6 +18,7 @@


 #include <getopt.h>
+#include <stdlib.h>
 #include <vdr/plugin.h>
 #include <vdr/status.h>

@@ -285,7 +286,7 @@
   while((c=getopt_long(argc,argv,"p:x:y:",long_options,&option_index))!=-1) {
     switch(c) {
       case 'p':
-        lptPort = atoi(optarg);
+        lptPort = strtol(optarg, (char **)NULL, 0);
         GraphLCDSetup.Port = lptPort;
         break;

> Greetings,
> Sascha Volkenandt

Ciao,
Andreas
--
Andreas Kool (akool@akool.de * akool@isdn4linux.de * http://www.akool.de)
PGP: 3FBF2411 Fingerprint: B5 35 34 74 25 60 2A 7A  89 06 92 C4 08 BA A5 BD
(To get my PGP key, send me a mail with subject "send pgp key")
		X <-- Nail here for a new Monitor
Transmission of this message via the Microsoft Network is prohibited


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index