/*
* YAFFS: Yet another FFS. A NAND-flash specific file system.
*
- * Copyright (C) 2002-2010 Aleph One Ltd.
+ * Copyright (C) 2002-2011 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Timothy Manning <timothy@yaffs.net>
{
int error_code = 0;
handle=yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE);
- printf("newly opend handle = %d handle\n",handle);
- char text[2000000]="\0";
+ char text[2000000];
int output=0;
if (handle<0){
if(output>=0){
output=yaffs_close(handle);
if (output>=0){
- printf("closed the file, handle %d\n",handle);
return 1;
} else {
print_message("could not close the handle\n",2);
return -1;
}
- strcat(file_name,YAFFS_MOUNT_POINT);
+ strcpy(file_name,YAFFS_MOUNT_POINT);
for (x=strlen(YAFFS_MOUNT_POINT); x<file_name_length -1; x++){
file_name[x]='a';
}