X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fmirror_tests%2Flib.c;h=1a9d6ac4f3ee44198c011a63c2d0962ad4af7824;hp=0d1443050763c4c2de188c00e65b79dfbd1c9581;hb=2870702e0b0f4342857222a36ffcb21886c7f4bf;hpb=df369209e1ee1d05eba9527b1e6447e8e78d0988 diff --git a/direct/timothy_tests/mirror_tests/lib.c b/direct/timothy_tests/mirror_tests/lib.c index 0d14430..1a9d6ac 100644 --- 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; - 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");