Segfault when try to seek


When I try to seek with the command "mocp -k 10", it's give me a segfault.
I use Debian testing with the latest updates, my mocp version is 2.5.0-alpha3, install from Debian repository.
I start mocp with debug switch(mocp -D), play a song and on another terminal try to seek, here is the result:

What kind of information do you need to help me?
It's a very important feature for me.


Looks like this stopped working in SVN revision 2136. Can you try this patch?
<br /> Index: moc/main.c<br /> ===================================================================<br /> --- moc.orig/main.c 2009-09-03 11:28:11.000000000 +0200<br /> +++ moc/main.c 2009-09-03 11:28:39.000000000 +0200<br /> @@ -406,7 +406,8 @@<br /> val = strtol (p, &amp;e, 10);<br /> if ((*e&amp;&amp;last==NULL)||e==p)<br /> fatal ("The parameter should be a number.");<br /> - *last=e;<br /> + if (last)<br /> + *last=e;<br /> return val;<br /> }<br />

With this patch work very well, thank you!

Patch applied, thanks.