Just found this thread on a search & tried running it on a file I recorded last year w/ an R-09 that somehow powered itself down while taping (I -swear- it was on HOLD -_-;)... When I copied it to my machine, it "looked" ok ("file" even showed the right settings), but the wav just wouldn't play in ANYthing.
The Mac version came up with REALLY bizarre numbers, and actually ended up setting the header to those values, despite me entering in the correct ones (512 channels at 1152122880 Hz???), but the linux version worked like a charm, recognized the correct settings right away, added TWO BYTES to the total file size, and now it's open in audacity, looking great!
Kudos to you, pigiron.
@justink: to use the Mac version, open a Terminal window, & just type "./fixwav file.wav" (adjusting for path if necessary). The file must end in .wav (lowercase), so you might have to rename it if it's all caps.