Brute force here - using TortoiseSVN to checkout different trunk versions and then copying them over to where CHDK-shell expects to find them. Figuring out how to download just the trunk and not the branches and tags folders cut the download down to 10 minutes or so.
OK, here's a tip for the future: Right click on your working copy, "TortoiseSVN" -> "switch" -> "Show log". Click on the revision you want. Then it just downloads the *differences* required to change your working copy to that revision. When you are done, just do the same thing and switch back to head. You can switch between branches that way too.
Kind of seems like :
static char de[40] ;
de[0]=0x00;
You'd think so. Or hey, just for paranoia sake memset(de,0,sizeof(de)); Note that the old one would only initialize it the first time through.
I wonder if de needs to be bigger on recent dryos cams, you should be able to find out by making it bigger, setting the remaining bytes to an identifiable values, and checking after the call.
Note also that our dryos readdir uses a single static dirent, which is not correct:
http://pubs.opengroup.org/onlinepubs/007908799/xsh/readdir.htmlThe pointer returned by readdir() points to data which may be overwritten by another call to readdir() on the same directory stream. This data is not overwritten by another call to readdir() on a different directory stream.
I don't think any of our code relies on having multiple dirs open at the same time.
edit:
Oh wait, we do in gui_fselect.c for raw purge at least. No wonder people complained about raw purge being broken... Joy