aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2004-01-30 21:42:39 +0800
committerarved <arved@FreeBSD.org>2004-01-30 21:42:39 +0800
commit59181799b7683ec342a0b12f5866b7e177b16bf5 (patch)
tree20b2fa1fa90371d10561500832f4e21e224f535f
parent6c25b8eb822f9036ea270960d30a5ba25380ccee (diff)
downloadfreebsd-ports-gnome-59181799b7683ec342a0b12f5866b7e177b16bf5.tar.gz
freebsd-ports-gnome-59181799b7683ec342a0b12f5866b7e177b16bf5.tar.zst
freebsd-ports-gnome-59181799b7683ec342a0b12f5866b7e177b16bf5.zip
Fix handling of empty CC fields
PR: 62101 Submitted by: Miguel Mendez <flynn@energyhq.es.eu.org>
-rw-r--r--sysutils/gtk-send-pr/Makefile1
-rw-r--r--sysutils/gtk-send-pr/files/patch-aa38
2 files changed, 39 insertions, 0 deletions
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));