X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fwormhole.c;h=86a6dcd54a7c6de513a7fc2cbf531ae45b64c46e;hp=0e55eabd1b81e4e2e421cb0f2ed5cd23f5cd5f49;hb=5f9c47ca98dd43d8f59b7c27d3fde6edfde4fe21;hpb=50be9bb40dc60130c99ffa568e6677779904ff70 diff --git a/hacks/wormhole.c b/hacks/wormhole.c index 0e55eabd..86a6dcd5 100644 --- a/hacks/wormhole.c +++ b/hacks/wormhole.c @@ -1,5 +1,4 @@ -/* xscreensaver, Copyright (c) 1992, 1995, 1996, 1997, 1998, 2004, 2006 - * Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-2011 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -87,7 +86,7 @@ struct state { /*inline*/ static int rnd( int q ) { - + if (q < 1) q = 1; return random() % q; }