dtpad: remove register keyword
[oweals/cde.git] / cde / programs / dtpad / fileIo.c
index cd5db3309637b6bef694bd9ab83afdda593a340d..bf1450aa81393656213a7fc7b886c2e33637fe1b 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
  */
@@ -314,7 +314,7 @@ AddPound(
                    strcat(returnBuf, "#");
        } else {
            sprintf(returnBuf, "#%s", tempBuf);
-           if(returnBuf[strlen(returnBuf) - 1] != (char)'#')
+           if(strlen(returnBuf) && returnBuf[strlen(returnBuf) - 1] != (char)'#')
                strcat(returnBuf, "#");
        }
     } else {