projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs More tests for quick test
[yaffs2.git]
/
yaffs_nameval.c
diff --git
a/yaffs_nameval.c
b/yaffs_nameval.c
index d7cb72aa00a6bf94ea9d275f688e6b879e14ea93..d8c548a1b832e3c10b7c7ed1cc45d6e66bf29bac 100644
(file)
--- a/
yaffs_nameval.c
+++ b/
yaffs_nameval.c
@@
-81,8
+81,9
@@
int nval_del(char *xb, int xb_size, const YCHAR * name)
memcpy(xb + pos, xb + pos + size, xb_size - (pos + size));
memset(xb + (xb_size - size), 0, size);
return 0;
memcpy(xb + pos, xb + pos + size, xb_size - (pos + size));
memset(xb + (xb_size - size), 0, size);
return 0;
- } else
+ } else
{
return -ENODATA;
return -ENODATA;
+ }
}
int nval_set(char *xb, int xb_size, const YCHAR * name, const char *buf,
}
int nval_set(char *xb, int xb_size, const YCHAR * name, const char *buf,
@@
-182,8
+183,9
@@
int nval_list(const char *xb, int xb_size, char *buf, int bsize)
buf++;
}
ncopied += (name_len + 1);
buf++;
}
ncopied += (name_len + 1);
- } else
+ } else
{
filled = 1;
filled = 1;
+ }
pos += size;
if (pos < xb_size - sizeof(int))
memcpy(&size, xb + pos, sizeof(int));
pos += size;
if (pos < xb_size - sizeof(int))
memcpy(&size, xb + pos, sizeof(int));