ajaiantilal / i7z

i7z tool
code.google.com/p/i7z
GNU General Public License v2.0
223 stars 69 forks source link

Fix long options segmentation fault. Add version information option. #11

Open bobwya opened 9 years ago

bobwya commented 9 years ago

Hi Abhishek,

Hope you'll be able to merge this Pull request.

I've fixed the segmentation fault - triggered when using an unsupported "long option" parameter (the long_options structure wasn't terminated by all 0 entry).

I've also added in a version parameter. This now automatically prints out the most recent Git commit information.

Robert