X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Fobjects.c;h=242ec3cdc16fac241f4a5edf07fc8f76c0e808e8;hb=c881aa3386c00d7021ffabf2f66275d6c110c1c1;hp=9d54ec21a30e3537100aa49ffdddc6571fc7556a;hpb=8760c1ba6442153afe76bcac742e086f90c59fe8;p=inform.git diff --git a/src/objects.c b/src/objects.c index 9d54ec2..242ec3c 100644 --- a/src/objects.c +++ b/src/objects.c @@ -7,7 +7,7 @@ /* specifications for the object-maker. */ /* */ /* Part of Inform 6.35 */ -/* copyright (c) Graham Nelson 1993 - 2020 */ +/* copyright (c) Graham Nelson 1993 - 2021 */ /* */ /* Inform is free software: you can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ @@ -1433,7 +1433,8 @@ the names '%s' and '%s' actually refer to the same property", if (token_type == SEGMENT_MARKER_TT) { put_token_back(); break; } if ((!individual_property) && (property_number==1) - && (token_type != SQ_TT) && (token_type != DQ_TT) + && ((token_type != SQ_TT) || (strlen(token_text) <2 )) + && (token_type != DQ_TT) ) warning ("'name' property should only contain dictionary words");