[pidgin-musictracker] r457 committed - Replace a magic number with STRLEN, in preparation for removing them a...

1 view
Skip to first unread message

pidgin-mu...@googlecode.com

unread,
Mar 10, 2010, 9:36:12 AM3/10/10
to pidgin-musict...@googlegroups.com
Revision: 457
Author: jon.t...@dronecode.org.uk
Date: Wed Mar 10 06:35:19 2010
Log: Replace a magic number with STRLEN, in preparation for removing them
all...


http://code.google.com/p/pidgin-musictracker/source/detail?r=457

Modified:
/trunk/src/xmmsctrl.c

=======================================
--- /trunk/src/xmmsctrl.c Mon May 25 07:33:28 2009
+++ /trunk/src/xmmsctrl.c Wed Mar 10 06:35:19 2010
@@ -71,7 +71,7 @@
return FALSE;
}

- char regexp[100];
+ char regexp[STRLEN];
sprintf(regexp, "^(.*)\\%s(.*)\\%s(.*)$", sep,
sep);
pcre *re = regex(regexp, 0);
capture(re, title, strlen(title), ti->artist,
ti->album, ti->track);

Reply all
Reply to author
Forward
0 new messages