X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_read_EINVAL.c;h=101c458a4bd6bf68b7dbe3f94dd8fc5453c448c9;hp=57f47fb8db34f42aadb3cdb6084c68f1c177e86e;hb=121c055437f23d9d6bc7b57d36ecf128b447013f;hpb=fc8b640f9637823d87b9582c7edcb87adcd0383a diff --git a/direct/timothy_tests/quick_tests/test_yaffs_read_EINVAL.c b/direct/timothy_tests/quick_tests/test_yaffs_read_EINVAL.c index 57f47fb..101c458 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_read_EINVAL.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_read_EINVAL.c @@ -1,7 +1,7 @@ /* * 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 @@ -20,7 +20,7 @@ int test_yaffs_read_EINVAL(void) { int error_code = 0; handle=yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE); - char text[2000000]="\0"; + char text[2000000]; int output=0; if (handle<0){ @@ -113,7 +113,7 @@ int test_yaffs_read_EINVAL_init(void) return -1; } - strcat(file_name,YAFFS_MOUNT_POINT); + strcpy(file_name,YAFFS_MOUNT_POINT); for (x=strlen(YAFFS_MOUNT_POINT); x