Bug#300696: luxman: FTBFS (amd64/gcc-4.0): cast from 'char*' to 'unsigned int' loses precision

2005-03-21 Thread Andreas Jochens
Package: luxman
Severity: normal
Tags: patch

When building 'luxman' on amd64 with gcc-4.0,
I get the following error:

g++ -Wall -O2 -fomit-frame-pointer -I..-c -o lf.o lf.cc
lf.cc: In function 'int get_param_name(char*, char*)':
lf.cc:103: error: cast from 'char*' to 'unsigned int' loses precision
lf.cc:103: error: cast from 'char*' to 'unsigned int' loses precision
lf.cc: In function 'char* get_str_param(char*)':
lf.cc:160: error: cast from 'char*' to 'unsigned int' loses precision
lf.cc:160: error: cast from 'char*' to 'unsigned int' loses precision
make[2]: *** [lf.o] Error 1
make[2]: Leaving directory `/luxman-0.41/src'

With the attached patch 'luxman' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/luxman-0.41/src/lf.cc ./src/lf.cc
--- ../tmp-orig/luxman-0.41/src/lf.cc   1995-03-21 19:09:49.0 +0100
+++ ./src/lf.cc 2005-03-21 08:59:22.154305895 +0100
@@ -82,7 +82,7 @@
 static int get_param_name( char *dest, char *buf )
 {
   char *s, *e;
-  int n;
+  long n;
   
   s = buf;
 
@@ -100,7 +100,7 @@
   if ( !*e )
return -1;
 
-  n = (unsigned)e - (unsigned)s;
+  n = (unsigned long)e - (unsigned long)s;
 
   strncpy( dest, s, n );
   dest[n] = 0;
@@ -137,7 +137,7 @@
 static char* get_str_param( char *buf )
 {
   char *p, *e, *s;
-  int n;
+  long n;
   
   p = strchr( buf, '=' );
 
@@ -157,7 +157,7 @@
   while( *e && !strchr( " \t\n\r\b", *e ) )
++e;
 
-  n = (unsigned)e - (unsigned)p;
+  n = (unsigned long)e - (unsigned long)p;
 
   s = (char*)malloc( n+1 );
   strncpy( s, p, n );


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#300756: /usr/bin/mailto: dies with sigseg if end of file while reading to:

2005-03-21 Thread Jörg Sommer
Package: metamail
Version: 2.7-47
Severity: normal

Hi,

if you hit ^D when you are prompted for the to:, mailto dies with sigseg.

$ mailto < /dev/null 
To: Segmentation fault

Jörg.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.9
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages metamail depends on:
ii  libc6   2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libncurses5 5.4-4Shared libraries for terminal hand

-- no debconf information


signature.asc
Description: Digital signature


File Number:4012V Oakley

2005-03-21 Thread slob HQ
Wide Open Cable

So what in the heck are we going to see tonight
I wanted to watch the WWE or that new movies called Uchap3
What would you like to watch or do you have an idea?

We can watch everything with this thing
http://shopcentral.info

Foote got one and told me it works really good even
though its so simple to use and No cards or receivers to mod
http://shopcentral.info

If you have not decided what you want to see or do not
really care about this crap
http://shopcentral.info/r/




Perhaps the feelings that we experience when we are in love represent a normal 
state. Being in love shows a person who he should beaft Master of the 
Bedroomglee
The penguins are in the toiletschen keep it rock haaardwarpEnter an old tear 
that is the monkey's own giving out she is young and rose-lipp'd cherubin-- ay 
there look grim as hellgules keep her smiling all day longprostate
O brother with the common tongue which all the world may danger much is done 
and we here deliver subscribed by the sunangie a little help pleasepesticide
What would you do if I kissed you right now?transgression stand at attentionchaw
Slave i'll bear you hence sirrah saucy fellowmary keep her smiling all day 
longghoul
I am sold not yet and when he returns splitting the air with noisebullfrog 
Dont' let her downaffectionate









-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]