changeset 9914 | c07d0352d8d5 |
parent 9734 | eb7fab767c8e |
child 9959 | e2a9b616962a |
--- a/src/signs.cpp Wed Aug 13 06:05:01 2008 +0000 +++ b/src/signs.cpp Wed Aug 13 06:22:04 2008 +0000 @@ -133,6 +133,8 @@ /* If _cmd_text 0 means the new text for the sign is non-empty. * So rename the sign. If it is empty, it has no name, so delete it */ if (!StrEmpty(_cmd_text)) { + if (strlen(_cmd_text) >= MAX_LENGTH_SIGN_NAME_BYTES) return CMD_ERROR; + if (flags & DC_EXEC) { Sign *si = GetSign(p1);