Hello,

I'm ready for a NMU, attached I put the diff.
Now I'll upload the package in delayed.

the patch contain:
- fix on 64-bit architecture: use C99 "fixed"-bit integer
- fix of undeclared function: a potential bug, which can
  give problem on some architectures.
  Considering the package pourpose, maybe Architecture: "any"
  is to wide.
- fix a return of local stack variables

PS: only the first is a rc bug (#438385),
but the second adn the third are potential rc or important bugs.

ciao
        cate
diff -u awardeco-0.2/debian/changelog awardeco-0.2/debian/changelog
--- awardeco-0.2/debian/changelog
+++ awardeco-0.2/debian/changelog
@@ -1,3 +1,11 @@
+awardeco (0.2-2.1) unstable; urgency=low
+
+  * Non-Maintainer Upload at BSP in Zurich: fix rc bug
+  * Use the C99 bit length integer, to be safe on various archs
+  * fix also headers inclusion (memcpy: <string.h>, exit: <stdlib.h>
+
+ -- Giacomo Catenazzi <[EMAIL PROTECTED]>  Sat, 12 Jan 2008 20:07:12 +0100
+
 awardeco (0.2-2) unstable; urgency=low
 
   * Fix FTBFS on GNU/kFreeBSD (Closes: #414235).
only in patch2:
unchanged:
--- awardeco-0.2.orig/debian/patches/30_fixeduint.patch
+++ awardeco-0.2/debian/patches/30_fixeduint.patch
@@ -0,0 +1,17 @@
+diff -Nur awardeco-0.2/src/awardeco.h awardeco-0.2.new/src/awardeco.h
+--- awardeco-0.2/src/awardeco.h	2006-08-05 11:38:03.000000000 +0200
++++ awardeco-0.2.new/src/awardeco.h	2008-01-16 08:12:10.000000000 +0100
+@@ -10,10 +10,11 @@
+ #define AWARDECO_H 1
+ 
+ #include	<stdio.h>
++#include	<stdint.h>
+ 
+ typedef unsigned char	byte;
+-typedef unsigned short	word;
+-typedef unsigned long	dword;
++typedef uint16_t	word;
++typedef uint32_t	dword;
+ 
+ #define	Xtract 		0x10
+ #define	List   		0x11
only in patch2:
unchanged:
--- awardeco-0.2.orig/debian/patches/40_fixheader.patch
+++ awardeco-0.2/debian/patches/40_fixheader.patch
@@ -0,0 +1,12 @@
+diff -Nur awardeco-0.2/src/awardfnc.c awardeco-0.2.new/src/awardfnc.c
+--- awardeco-0.2/src/awardfnc.c	2006-08-05 11:38:03.000000000 +0200
++++ awardeco-0.2.new/src/awardfnc.c	2008-01-16 08:25:31.000000000 +0100
+@@ -10,6 +10,8 @@
+ #define AWARDFUNC_H 1
+ 
+ #include	<stdio.h>
++#include	<string.h>
++#include	<stdlib.h>
+ 
+ typedef unsigned char	byte;
+ typedef unsigned short	word;
only in patch2:
unchanged:
--- awardeco-0.2.orig/debian/patches/40_fixwarnings.patch
+++ awardeco-0.2/debian/patches/40_fixwarnings.patch
@@ -0,0 +1,21 @@
+diff -Nur awardeco-0.2/src/awardfnc.c awardeco-0.2.new/src/awardfnc.c
+--- awardeco-0.2/src/awardfnc.c	2008-01-16 08:28:09.000000000 +0100
++++ awardeco-0.2.new/src/awardfnc.c	2008-01-16 08:30:41.000000000 +0100
+@@ -153,7 +153,7 @@
+ 
+ byte *GetFullDate(byte *mon, byte *day, byte *year)
+ 	{
+-		byte *Months[]={"",
++		static byte const*const Months[]={"",
+ 				"January",
+ 				"February",
+ 				"March",
+@@ -166,7 +166,7 @@
+ 				"October",
+ 				"November",
+ 				"December"};
+-		byte Buf[20];
++		static byte Buf[20];  // Warning: we return this buffer, so place it in heap not on stack!
+ 		sprintf(Buf,"%2.2s",year);
+ 
+ 		if((atoi(Buf)>=0) && (atoi(Buf)<70)) sprintf(Buf,"%.2s %s %s%.2s",day,Months[atoi(mon)],"20",year);

Reply via email to