Fix country of origin length when writing.
authorCarl Hetherington <cth@carlh.net>
Wed, 4 Jun 2014 09:33:52 +0000 (10:33 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 4 Jun 2014 09:33:52 +0000 (10:33 +0100)
src/stl_binary_writer.cc

index f8d2263a74658924e155a4efc83e325fa491074c..c8dbc766a238d9708691c561bef49dc31fa7415e 100644 (file)
@@ -191,7 +191,7 @@ sub::write_stl_binary (
        put_string (buffer + 272, "1");
        /* Disk sequence number */
        put_string (buffer + 273, "1");
-       put_string (buffer + 274, 32, country_of_origin);
+       put_string (buffer + 274, 3, country_of_origin);
        put_string (buffer + 277, 32, publisher);
        put_string (buffer + 309, 32, editor_name);
        put_string (buffer + 341, 32, editor_contact_details);