libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit fb3a50e70471e87a1113197a029160a84d9dbb29
parent 6db4d47e934619fade06ee3d454b90f9c6e584e1
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 19 Jul 2005 10:41:35 +0000

cleaner

Diffstat:
Msrc/main/test_binary.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/test_binary.c b/src/main/test_binary.c @@ -50,17 +50,17 @@ static int test(const char * buf, return 1; } +#define MAX 1024 + int main(int argc, char * argv[]) { unsigned int i; - char buf[2048]; + char buf[MAX]; - for (i=0;i<2048;i++) { + for (i=0;i<MAX;i++) { buf[i] = (char) rand(); - if (! test(buf, i)) { - printf("Failed: %u\n", i); + if (! test(buf, i)) return -1; - } } return 0; }