simple patch for debian atari-bootstrap
Hi,
included below you'll find a simple bootstrap.c patch that fixes the
user entered memory size units (this is from m68kboot CVS).
I also bumped the version number - both the package and also the CHANGES
file mention version 3.3 but this #define was still at 3.2.
Do I have to fill a bug report or will you take care of this e-mail?
Thanks [and get ready for more patches]
Petr
--- atari-bootstrap-3.3.original/bootstrap.c 1998-02-15
12:23:11.000000000 +0100
+++ atari-bootstrap-3.3/bootstrap.c 2004-08-13 14:44:25.000000000 +0200
@@ -54,7 +54,7 @@
#include "linuxboot.h"
-#define ATABOOT_VERSION "3.2"
+#define ATABOOT_VERSION "3.3"
extern char *optarg;
extern int optind;
@@ -221,9 +221,9 @@
usage();
}
- if (islower(*end) == 'k')
+ if (tolower(*end) == 'k')
size *= 1024;
- else if (islower(*end) == 'm')
+ else if (tolower(*end) == 'm')
size *= 1024*1024;
return( size );
Reply to: