--- a/src/gaimrc.c Fri Sep 06 19:07:18 2002 -0400
+++ b/src/gaimrc.c Mon Sep 09 01:46:08 2002 -0400
@@ -63,16 +63,15 @@
char value[MAX_VALUES][4096];
-static struct parse *parse_line(char *line)
+static struct parse *parse_line(char *line, struct parse *p) int inopt = 1, inval = 0, curval = -1;
int optlen = 0, vallen = 0;
for (x = 0; x < MAX_VALUES; x++) {
@@ -85,36 +84,36 @@
/* if ((*c < 'a' || *c > 'z') && *c != '_') { */
if ((*c < 'a' || *c > 'z') && *c != '_' && (*c < 'A' || *c > 'Z')) {
+ p->option[optlen] = *c; - p.value[curval][vallen - 1] = *c;
+ p->value[curval][vallen - 1] = *c; - p.value[curval][vallen - 1] = 0;
+ p->value[curval][vallen - 1] = 0; - p.value[curval][vallen] = *c;
+ p->value[curval][vallen] = *c; - p.value[curval][vallen - 1] = *c;
+ p->value[curval][vallen - 1] = *c; @@ -129,7 +128,7 @@
@@ -228,6 +227,7 @@
static void gaimrc_read_away(FILE *f)
+ struct parse parse_buffer; @@ -241,7 +241,7 @@
+ p = parse_line(buf, &parse_buffer); if (!strcmp(p->option, "message")) {
a = g_new0(struct away_message, 1);
@@ -301,6 +301,7 @@
static void gaimrc_read_pounce(FILE *f)
+ struct parse parse_buffer; @@ -314,7 +315,7 @@
+ p = parse_line(buf, &parse_buffer); if (!strcmp(p->option, "entry")) {
b = g_new0(struct buddy_pounce, 1);
@@ -413,6 +414,7 @@
static void gaimrc_read_plugins(FILE *f)
+ struct parse parse_buffer; @@ -426,7 +428,7 @@
+ p = parse_line(buf, &parse_buffer); if (!strcmp(p->option, "plugin")) {
filter_break(p->value[0]);
load = g_slist_append(load, g_strdup(p->value[0]));
@@ -446,6 +448,7 @@
static struct aim_user *gaimrc_read_user(FILE *f)
+ struct parse parse_buffer; @@ -454,7 +457,7 @@
if (!fgets(buf, sizeof(buf), f))
+ p = parse_line(buf, &parse_buffer); if (strcmp(p->option, "ident"))
@@ -499,7 +502,7 @@
+ p = parse_line(buf, &parse_buffer); if (strcmp(p->option, "user_opts"))
@@ -513,7 +516,7 @@
+ p = parse_line(buf, &parse_buffer); if (strcmp(p->option, "proto_opts"))
@@ -527,7 +530,7 @@
+ p = parse_line(buf, &parse_buffer); if (strcmp(p->option, "iconfile"))
@@ -540,7 +543,7 @@
+ p = parse_line(buf, &parse_buffer); if (strcmp(p->option, "alias"))
@@ -593,6 +596,7 @@
+ struct parse parse_buffer; @@ -606,7 +610,7 @@
+ p = parse_line(buf, &parse_buffer); if (!strcmp(p->option, "current_user")) {
} else if (strcmp(p->option, "user")) {
@@ -707,6 +711,7 @@
static void gaimrc_read_options(FILE *f)
+ struct parse parse_buffer; gboolean read_logging = FALSE, read_general = FALSE, read_display = FALSE;
int general_options = 0, display_options = 0;
@@ -721,7 +726,7 @@
if (!fgets(buf, sizeof(buf), f))
+ p = parse_line(buf, &parse_buffer); if (!strcmp(p->option, "general_options")) {
general_options = atoi(p->value[0]);
@@ -869,6 +874,7 @@
+ struct parse parse_buffer; @@ -884,7 +890,7 @@
if (!fgets(buf, sizeof(buf), f))
+ p = parse_line(buf, &parse_buffer); if (!strcmp(p->option, "sound_cmd")) {
g_snprintf(sound_cmd, sizeof(sound_cmd), "%s", p->value[0]);
@@ -1003,6 +1009,7 @@
static void gaimrc_read_proxy(FILE *f)
+ struct parse parse_buffer; @@ -1015,7 +1022,7 @@
if (!fgets(buf, sizeof(buf), f))
+ p = parse_line(buf, &parse_buffer); if (!strcmp(p->option, "host")) {
g_snprintf(proxyhost, sizeof(proxyhost), "%s", p->value[0]);
@@ -1131,7 +1138,7 @@
- for (i = 0; i < 7; i++)
+ for (i = 0; i < NUM_SOUNDS; i++) /* Enable all of the sound players that might be available. The first
--- a/src/protocols/yahoo/yahoo.c Fri Sep 06 19:07:18 2002 -0400
+++ b/src/protocols/yahoo/yahoo.c Mon Sep 09 01:46:08 2002 -0400
@@ -968,6 +968,7 @@
struct gaim_connection *gc = new_gaim_conn(user);
struct yahoo_data *yd = gc->proto_data = g_new0(struct yahoo_data, 1);
+ g_snprintf(gc->username, sizeof(gc->username), "%s", g_strstrip(gc->username)); set_login_progress(gc, 1, "Connecting");
@@ -1184,7 +1185,7 @@
yahoo_send_packet(yd, pkt);