aboutsummaryrefslogtreecommitdiff
path: root/sysutils/gtk-send-pr
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2004-01-30 13:42:39 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2004-01-30 13:42:39 +0000
commitad7699d618531f738642ad380f8dbc73a4a7d50f (patch)
tree60194209e189cbd03681ff0d2b9f84ab7bde9915 /sysutils/gtk-send-pr
parent2806390689de073b54560f96a668de8e412d9450 (diff)
Fix handling of empty CC fields
PR: 62101 Submitted by: Miguel Mendez <flynn@energyhq.es.eu.org>
Notes
Notes: svn path=/head/; revision=99515
Diffstat (limited to 'sysutils/gtk-send-pr')
-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));