* 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
*/
{
DtMailEnv error;
DtMail::Envelope * env;
- int textLen;
+ int textLen = 0;
env = _msgHandle->getEnvelope(error);
storeHeaders();
XtFree(widget_text);
widget_text = NULL;
}
- else
- textLen = strlen(widget_text);
-
+ else if(widget_text) {
+ textLen = strlen(widget_text);
+ }
// Even if textlen is 0 because user has cleared all previous text,
// need to setContents again to clear first BP. Otherwise, deleted
// text will show up.
int slot = lookupHeader(name);
if (slot < 0) {
- // We dont have a place for this information. We may need
+ // We don't have a place for this information. We may need
// to create a new header.
//
if (load_all) {
_textPopupMenuList->add( _edit_cut );
_textPopupMenuList->add( _edit_copy );
_textPopupMenuList->add( _edit_paste );
-#ifdef __osf__
- // Work in progress from Mike. This adds the Paste Special to the
- // third mouse button in the compose area of a compose window.
- // Begin Paste Special submenu
- CmdList * subcmdList1 = new CmdList ( "Paste Special", GETMSG(DT_catd, 1, 135 , "Paste Special") );
- subcmdList1->add(_edit_paste_special[0]);
- subcmdList1->add(_edit_paste_special[1]);
- // End Paste Special submenu
- _textPopupMenuList->add( subcmdList1 ); // Add Paste Special submenu
- // (Either way) _textPopupMenuList->add( separator );
- _textPopupMenuList->add( _edit_clear );
-#endif
_textPopupMenuList->add( _edit_delete );
_textPopupMenuList->add( _edit_select_all );
if (SafeRead(fd, _dead_letter_buf,
(unsigned int) buf.st_size) != buf.st_size) {
- delete _dead_letter_buf;
+ delete [] _dead_letter_buf;
close(fd);
return;
}
for (i=0, j=results.length(); i < j; i++) {
PropStringPair * psp = results[i];
int slot = lookupHeader(psp->label);
- // dont allow removal of default headers.
+ // don't allow removal of default headers.
HeaderList * hl = _header_list[slot];
if (!reservedHeader(hl->label)) {
if (slot != -1)