On Tue, Nov 11, 2014 at 20:34:08 +0000, Rory McNamara wrote: > Would have thought the compiler would do that for me, but I've cached it > anyway.
Not all compilers are that smart :( . > Good point on the second, missed that when I changed the loops. > Fixed attached. One last nit :) . --Ben > - if (strcmp(name, mpc_table[i].command) == 0) > + if (strncmp(name, mpc_table[i].command, len) == 0 && > strncmp(name, mpc_table[i].command, len) == 0) This is now "if (a && a)" _______________________________________________ mpd-devel mailing list mpd-devel@musicpd.org http://mailman.blarg.de/listinfo/mpd-devel