From 1ff1a8817d0b26bcbeea77106827467b569071c9 Mon Sep 17 00:00:00 2001 From: "cls%seawood.org" Date: Fri, 30 Mar 2001 09:51:50 +0000 Subject: [PATCH] Cast void * to long before casting to char. Thanks to Brad Roberts for the patch. Bug #74078 --- mailnews/local/src/nsPop3Protocol.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mailnews/local/src/nsPop3Protocol.cpp b/mailnews/local/src/nsPop3Protocol.cpp index cf3ab6e1ac8..7d441315c64 100644 --- a/mailnews/local/src/nsPop3Protocol.cpp +++ b/mailnews/local/src/nsPop3Protocol.cpp @@ -112,9 +112,7 @@ net_pop3_remove_messages_marked_delete(PLHashEntry* he, PRIntn msgindex, void *arg) { - char valueChar = '\0'; - if (he->value) - nsCRT::memcpy(&valueChar, he->value, sizeof(char)); + char valueChar = (char)(long)he->value; if (valueChar == DELETE_CHAR) return HT_ENUMERATE_REMOVE; else