From 59181799b7683ec342a0b12f5866b7e177b16bf5 Mon Sep 17 00:00:00 2001 From: arved Date: Fri, 30 Jan 2004 13:42:39 +0000 Subject: Fix handling of empty CC fields PR: 62101 Submitted by: Miguel Mendez --- sysutils/gtk-send-pr/Makefile | 1 + sysutils/gtk-send-pr/files/patch-aa | 38 +++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 sysutils/gtk-send-pr/files/patch-aa diff --git a/sysutils/gtk-send-pr/Makefile b/sysutils/gtk-send-pr/Makefile index 5c194b01f924..521022c5b8f1 100644 --- a/sysutils/gtk-send-pr/Makefile +++ b/sysutils/gtk-send-pr/Makefile @@ -7,6 +7,7 @@ PORTNAME= gtk-send-pr PORTVERSION= 0.3.2 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.energyhq.es.eu.org/files/ diff --git a/sysutils/gtk-send-pr/files/patch-aa b/sysutils/gtk-send-pr/files/patch-aa new file mode 100644 index 000000000000..210ed527733f --- /dev/null +++ b/sysutils/gtk-send-pr/files/patch-aa @@ -0,0 +1,38 @@ +--- gtk_ui.c.old Thu Jan 29 21:16:44 2004 ++++ gtk_ui.c Fri Jan 30 10:43:42 2004 +@@ -21,7 +21,7 @@ + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +- $Id: //depot/gtk-send-pr/gtk_ui.c#10 $ ++ $Id: //depot/gtk-send-pr/gtk_ui.c#11 $ + + */ + +@@ -925,16 +925,19 @@ + + mypr->smtp_cc_text=(char *)gtk_entry_get_text(GTK_ENTRY(email_entry4)); + cc_field=(char *)gtk_entry_get_text(GTK_ENTRY(email_entry4)); ++ if(strlen(mypr->smtp_cc_text)>0) { + +- do { +- temp_cc=strsep(&cc_field,","); +- if(temp_cc!=NULL) { ++ do { ++ temp_cc=strsep(&cc_field,","); ++ if(temp_cc!=NULL) { + +- mypr->smtp_cc[mypr->smtp_cc_num]=temp_cc; +- mypr->smtp_cc_num++; +- } ++ mypr->smtp_cc[mypr->smtp_cc_num]=temp_cc; ++ mypr->smtp_cc_num++; ++ } ++ ++ } while(temp_cc!=NULL); + +- } while(temp_cc!=NULL); ++ } + + mypr->smtp_server=(char *)gtk_entry_get_text(GTK_ENTRY(email_entry8)); + mypr->smtp_from=(char *)gtk_entry_get_text(GTK_ENTRY(email_entry2)); -- cgit