lkml.org 
[lkml]   [2005]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
From
Subject[PATCH] intrep.c char -> unsigned char
Date

Hi,
IANAKH but I believe you need the following patch.
As suggested on the Kernel Janitors To Do list, I have been searching for
chars > 127.
I only found this one!

If the fix is correct please, ACK and push upstream.

regards,
Felix

--- fs/jffs/intrep.c.orig 2005-10-08 15:47:13.000000000 +0100
+++ fs/jffs/intrep.c 2005-10-08 16:13:16.000000000 +0100
@@ -1969,7 +1969,7 @@ retry:
iovec_cnt++;

if (JFFS_GET_PAD_BYTES(raw_inode->nsize)) {
- static char allff[3]={255,255,255};
+ static unsigned char allff[3]={255,255,255};
/* Add some extra padding if necessary */
node_iovec[iovec_cnt].iov_base = allff;
node_iovec[iovec_cnt].iov_len =
Signed-off-by: Felix Oxley <lkml@oxley.org>
--- fs/jffs/intrep.c.orig 2005-10-08 15:47:13.000000000 +0100
+++ fs/jffs/intrep.c 2005-10-08 16:13:16.000000000 +0100
@@ -1969,7 +1969,7 @@ retry:
iovec_cnt++;

if (JFFS_GET_PAD_BYTES(raw_inode->nsize)) {
- static char allff[3]={255,255,255};
+ static unsigned char allff[3]={255,255,255};
/* Add some extra padding if necessary */
node_iovec[iovec_cnt].iov_base = allff;
node_iovec[iovec_cnt].iov_len =
\
 
 \ /
  Last update: 2005-10-08 17:50    [W:0.068 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site