chiark / gitweb /
update licence to GPLv3 or later (was GPLv2 or later).
[chiark-utils.git] / cprogs / rwbuffer.c
index ee97fca6bac443802b18194127bc58e42822fc9b..fc73624fc90ecbf4345aa9d8ea845d700d3ca911 100644 (file)
@@ -13,7 +13,7 @@
  *
  * This is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2,
+ * published by the Free Software Foundation; either version 3,
  * or (at your option) any later version.
  *
  * This is distributed in the hope that it will be useful, but
@@ -100,7 +100,7 @@ void startup(const char *const *argv) {
       case 'b':          shift= 0;   break;
       default: usageerr("buffer size unit unknown");
       }
-      if (buffersize > (RWBUFFER_SIZE_MB_MAX >> shift))
+      if (buffersize > ((RWBUFFER_SIZE_MB_MAX << 20) >> shift))
        usageerr("buffer size too big");
       buffersize <<= shift;
     } else {