X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_nameval.c;h=4bdf4ed743a7195dca0e3af8ac7775801b96b42c;hp=487b03e19fd9a6f0fb06800f7dde867602ccdc16;hb=d9cae0a277c62c660e4802d3b8745500583273da;hpb=c4e8d85455d0acf2a3da23c20cd2db66d30caf1b 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;