dtsession: fix screen saver/locking on linux
[oweals/cde.git] / cde / programs / dtprintinfo / objects / BaseObj.C
index 9bcbebd4ddc2ce5317dc006c06e3bd53d80a7dc6..166829b63f3cfeef33e9ceb62c40a67966a78450 100644 (file)
@@ -16,7 +16,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  * Floor, Boston, MA 02110-1301 USA
  */
@@ -417,7 +417,7 @@ boolean BaseObj::SendAction(Action *action,
     {
       _lastActionStatus = -1;
       int len = strlen("'%s' is not an action of %s") +
-               strlen(ObjectClassName()) + strlen(action->ReferenceName);
+               strlen(ObjectClassName()) + strlen(action->ReferenceName) + 1;
       _lastActionOutput = new char [len];
       sprintf(_lastActionOutput, "'%s' is not an action of %s", 
              ObjectClassName(), action->ReferenceName);