BUGFIX: Segfault if out-of-bounds string read occurs. Adds a bounds chec...

...k on hw_revision