diff --git a/ogg123/ogg123.c b/ogg123/ogg123.c index 4c72ad674260d396e26ee913bbc1e872505388ed..76923f3fb8ca33a75af1a439229a75997ce7311f 100644 --- a/ogg123/ogg123.c +++ b/ogg123/ogg123.c @@ -14,7 +14,7 @@ * * ******************************************************************** - last mod: $Id: ogg123.c,v 1.48 2001/10/02 03:10:42 msmith Exp $ + last mod: $Id: ogg123.c,v 1.49 2001/11/28 05:47:16 volsung Exp $ ********************************************************************/ @@ -239,7 +239,7 @@ int main(int argc, char **argv) srand(time(NULL)); for (i = optind; i < argc; i++) { - int j = optind + rand() % (argc - i); + int j = i + rand() % (argc - i); char *temp = argv[i]; argv[i] = argv[j]; argv[j] = temp;