With the OpenQ plugin, whenever Gaim writes its prefs
to disk, it crashes. I wonder why no one else is
complaining, but maybe my machine's too sensitive to
segfaults or something :P
The crash is basically like this:
...
QQ: ack [65468] QQ_CMD_GET_FRIENDS_ONLINE, remove from
sendqueue
QQ: Buddy status entry, unclear fields for [437898934]:
004: 01 (unknown)
011: 00 (unknown)
013-014: 0483 (unknown)
QQ: Online buddy entry, Unclear fields for [437898934]:
031-032: 0000 (unknown)
033: 40 (flag1)
034: 02 (comm_flag)
035-036: 0000 (unknown)
prefs: /gaim/gtk/blist/show_offline_buddies changed,
scheduling save.
accounts: Writing accounts to disk.
prefs: /gaim/gtk/blist/show_offline_buddies changed,
scheduling save.
prefs: writing prefs out to disk.
It segfaults after the "prefs: " line.
Now, I think I've found the bug, it's in src/qq.c,
init_plugin:
gaim_prefs_add_string("/plugins/prpl/qq/ipfile", NULL);
I haven't looked at the gaim sources for this function,
but if I change it to something other than "NULL", it
works:
gaim_prefs_add_string("/plugins/prpl/qq/ipfile",
DATADIR "/" DEFAULT_IP_LOCATION_FILE);
And I think it would be better to have the default
location here, just like the next prefs:
gaim_prefs_add_string("/plugins/prpl/qq/datadir", DATADIR);
Right? I've attached the patch.
Logged In: NO
THank you!
Now I must find out how to apply that patch...
anyways, I had that problem too, I thought it had something
to do with unicode characters. Guess I was wrong. Im such a
n00b...