[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/src offline_queue_mgmt.c,1.2,1.3 util.c,1.47
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/src offline_queue_mgmt.c,1.2,1.3 util.c,1.47,1.48 |
Date: |
Sun, 02 Mar 2003 07:45:52 -0500 |
Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv27797/src
Modified Files:
offline_queue_mgmt.c util.c
Log Message:
fix \n in last token of ay_strsplit
Index: offline_queue_mgmt.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/offline_queue_mgmt.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- offline_queue_mgmt.c 2 Mar 2003 12:03:39 -0000 1.2
+++ offline_queue_mgmt.c 2 Mar 2003 12:45:46 -0000 1.3
@@ -96,6 +96,11 @@
eb_account *ea = NULL;
int ea_recreated = TRUE;
+ if (strstr(newgroup,"\n")) {
+ char *t = strstr(newgroup,"\n");
+ *t = '\0';
+ }
+
ea = find_account_by_handle(handle,
ela->service_id);
@@ -210,6 +215,11 @@
int action = atoi(tokens[1]);
char *oldgroup = tokens[2];
char *newgroup = tokens[3];
+
+ if (strstr(newgroup,"\n")) {
+ char *t = strstr(newgroup,"\n");
+ *t = '\0';
+ }
if (action == MGMT_GRP_ADD && CAN(ela, add_group)) {
RUN_SERVICE(ela)->add_group(newgroup);
Index: util.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/util.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- util.c 12 Feb 2003 10:12:00 -0000 1.47
+++ util.c 2 Mar 2003 12:45:46 -0000 1.48
@@ -898,6 +898,7 @@
grouplist *eg;
eg = calloc(1, sizeof(grouplist));
+
strncpy(eg->name, name, sizeof(eg->name));
groups = l_list_append( groups, eg );
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/src offline_queue_mgmt.c,1.2,1.3 util.c,1.47,1.48,
Colin Leroy <address@hidden> <=
- Prev by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.303,1.304 configure.in,1.298,1.299
- Next by Date:
[Ayttm-commits] CVS: ayttm/modules/yahoo2/libyahoo2 libyahoo2.c,1.10,1.11
- Previous by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.303,1.304 configure.in,1.298,1.299
- Next by thread:
[Ayttm-commits] CVS: ayttm/modules/yahoo2/libyahoo2 libyahoo2.c,1.10,1.11
- Index(es):