Karsten Hopp cdd43e
To: vim_dev@googlegroups.com
Karsten Hopp cdd43e
Subject: Patch 7.3.126
Karsten Hopp cdd43e
Fcc: outbox
Karsten Hopp cdd43e
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp cdd43e
Mime-Version: 1.0
Karsten Hopp cdd43e
Content-Type: text/plain; charset=UTF-8
Karsten Hopp cdd43e
Content-Transfer-Encoding: 8bit
Karsten Hopp cdd43e
------------
Karsten Hopp cdd43e
Karsten Hopp cdd43e
Patch 7.3.126
Karsten Hopp cdd43e
Problem:    Compiler warning for signed pointer.
Karsten Hopp cdd43e
Solution:   Use unsigned int argument for sscanf().
Karsten Hopp cdd43e
Files:	    src/blowfish.c
Karsten Hopp cdd43e
Karsten Hopp cdd43e
Karsten Hopp cdd43e
*** ../vim-7.3.125/src/blowfish.c	2010-08-15 21:57:28.000000000 +0200
Karsten Hopp cdd43e
--- src/blowfish.c	2010-12-17 19:58:18.000000000 +0100
Karsten Hopp cdd43e
***************
Karsten Hopp cdd43e
*** 413,418 ****
Karsten Hopp cdd43e
--- 413,419 ----
Karsten Hopp cdd43e
      int    salt_len;
Karsten Hopp cdd43e
  {
Karsten Hopp cdd43e
      int      i, j, keypos = 0;
Karsten Hopp cdd43e
+     unsigned u;
Karsten Hopp cdd43e
      UINT32_T val, data_l, data_r;
Karsten Hopp cdd43e
      char_u   *key;
Karsten Hopp cdd43e
      int      keylen;
Karsten Hopp cdd43e
***************
Karsten Hopp cdd43e
*** 432,439 ****
Karsten Hopp cdd43e
      }
Karsten Hopp cdd43e
      for (i = 0; i < keylen; i++)
Karsten Hopp cdd43e
      {
Karsten Hopp cdd43e
! 	sscanf((char *)&key[i * 2], "%2x", &j);
Karsten Hopp cdd43e
! 	key[i] = j;
Karsten Hopp cdd43e
      }
Karsten Hopp cdd43e
  
Karsten Hopp cdd43e
      mch_memmove(sbx, sbi, 4 * 4 * 256);
Karsten Hopp cdd43e
--- 433,440 ----
Karsten Hopp cdd43e
      }
Karsten Hopp cdd43e
      for (i = 0; i < keylen; i++)
Karsten Hopp cdd43e
      {
Karsten Hopp cdd43e
! 	sscanf((char *)&key[i * 2], "%2x", &u);
Karsten Hopp cdd43e
! 	key[i] = u;
Karsten Hopp cdd43e
      }
Karsten Hopp cdd43e
  
Karsten Hopp cdd43e
      mch_memmove(sbx, sbi, 4 * 4 * 256);
Karsten Hopp cdd43e
*** ../vim-7.3.125/src/version.c	2011-02-15 18:06:11.000000000 +0100
Karsten Hopp cdd43e
--- src/version.c	2011-02-25 14:40:22.000000000 +0100
Karsten Hopp cdd43e
***************
Karsten Hopp cdd43e
*** 716,717 ****
Karsten Hopp cdd43e
--- 716,719 ----
Karsten Hopp cdd43e
  {   /* Add new patch number below this line */
Karsten Hopp cdd43e
+ /**/
Karsten Hopp cdd43e
+     126,
Karsten Hopp cdd43e
  /**/
Karsten Hopp cdd43e
Karsten Hopp cdd43e
-- 
Karsten Hopp cdd43e
Why doesn't Tarzan have a beard?
Karsten Hopp cdd43e
Karsten Hopp cdd43e
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp cdd43e
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp cdd43e
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp cdd43e
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///