X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_nameval.c;h=4bdf4ed743a7195dca0e3af8ac7775801b96b42c;hp=487b03e19fd9a6f0fb06800f7dde867602ccdc16;hb=18a85b88ac3ad344bbc8f2530c84e2a621d901c4;hpb=15af6e2cb583775682c96af704505bd7440a8551;ds=inline diff --git a/yaffs_nameval.c b/yaffs_nameval.c index 487b03e..4bdf4ed 100644 --- a/yaffs_nameval.c +++ b/yaffs_nameval.c @@ -37,7 +37,8 @@ static int nval_find(const char *xb, int xb_size, const YCHAR *name, memcpy(&size, xb, sizeof(int)); while (size > 0 && (size < xb_size) && (pos + size < xb_size)) { - if (!strncmp((YCHAR *) (xb + pos + sizeof(int)), name, size)) { + if (!strncmp((YCHAR *) (xb + pos + sizeof(int)), + name, size)) { if (exist_size) *exist_size = size; return pos;