summaryrefslogtreecommitdiff
path: root/packages/ipkg/ipkg-0.99.155/upgrade-message-garbage.patch
blob: 6e79f793410e5eab8cdc463f0410d1c86846456d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Prevent the output of spurious extra characters from
the stack.  This patch is in the manner of the rest of
the code, there is no good reason for this.

--- C/ipkg_install.c	1970-01-01 00:00:00.000000000 +0000
+++ C/ipkg_install.c	1970-01-01 00:00:00.000000000 +0000
@@ -723,6 +723,7 @@ static int ipkg_install_check_downgrade(
 	  return rc;
      } else {
       char message_out[15] ;
+      memset(message_out,'\x0',15);
       if ( message ) 
           strncpy( message_out,"Upgrading ",strlen("Upgrading ") );
       else