dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtmail / dtmail / Attachment.C
index 74a91da266ecc8f8205240e607ff73e5afe32d51..905bf43e081774b6b60213e123078a6994d6b9ef 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
  */
@@ -183,6 +183,24 @@ Attachment::Attachment(
        _label = XmStringCreateLocalized(strrchr(name, '/')+1);
 
     _key = theRoamApp.session()->session()->newObjectKey();
+    
+    myIcon = NULL;
+    _background = 0;
+    _foreground = 0;
+    _attachmentWidth = 0;
+    _attachmentHeight = 0;
+    _positionX = 0;
+    _positionY = 0;
+    _deleted = false;
+    _selected = false;
+    _row = 0;
+    _saveAsFilename = NULL;
+    _ce_name = NULL;
+    _ce_type = NULL;
+    _type = 0;
+    _binary = false;
+    _executable = false;
+    
 }
 
 Attachment::~Attachment(
@@ -1229,7 +1247,7 @@ Attachment::setContents()
            size = strlen(from_hdr) + int(_myContentsSize) + 3;
            buffer = new char[size];
 
-           // Look for the first occurance of a colon or a newline.
+           // Look for the first occurrence of a colon or a newline.
            char *sptr;
            for (sptr = (char*) _myContents;
                 *sptr && *sptr != '\n' && *sptr != ':';