Fix unmatched temporary buffer allocations
[yaffs2.git] / direct / test-framework / timothy_tests / yaffs_and_linux_mirror_tests / yaffs_test_truncate.c
1 /*
2  * YAFFS: Yet another FFS. A NAND-flash specific file system.
3  *
4  * Copyright (C) 2002-2018 Aleph One Ltd.
5  *
6  * Created by Timothy Manning <timothy@yaffs.net>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  */
12
13 #include "yaffs_test_truncate.h"
14
15 int yaffs_test_truncate(arg_temp *args_struct)
16 {
17         char path[200];
18         char message[200];
19         int output=0;
20         join_paths(yaffs_struct.root_path,args_struct->string1, path );
21         sprintf(message,"file path: %s\n",path);        
22         print_message(3,message);
23
24         output=yaffs_truncate(path,args_struct->int1);
25         return output;
26 }