projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs direct: Change yaffs_malloc to yaffsfs_malloc etc
[yaffs2.git]
/
direct
/
timothy_tests
/
mirror_tests
/
lib.c
diff --git
a/direct/timothy_tests/mirror_tests/lib.c
b/direct/timothy_tests/mirror_tests/lib.c
index 0d1443050763c4c2de188c00e65b79dfbd1c9581..1a9d6ac4f3ee44198c011a63c2d0962ad4af7824 100644
(file)
--- a/
direct/timothy_tests/mirror_tests/lib.c
+++ b/
direct/timothy_tests/mirror_tests/lib.c
@@
-40,7
+40,7
@@
void display_error(void)
void generate_random_string(char *ptr,int length_of_str){
unsigned int x;
void generate_random_string(char *ptr,int length_of_str){
unsigned int x;
- unsigned int length=((rand() %
length_of_str)+1);
/*creates a int with the number of charecters been between 1 and 51*/
+ unsigned int length=((rand() %
(length_of_str-3))+3);
/*creates a int with the number of charecters been between 1 and 51*/
char letter='\0';
strcpy(ptr,"");
//printf("generating string\n");
char letter='\0';
strcpy(ptr,"");
//printf("generating string\n");