[cbm4linux-users] Possible crash if cbmformat or d64copy are called with unknown long options
Brought to you by:
cbm4linux
From: Spiro T. <cb...@tr...> - 2004-11-14 18:08:59
|
Hello, the attached patch fixes a possible crash if cbmformat or d64copy are called with a long option which is not known. It seems that cbmcopy is not affected by this bug "by accident". In the declaration of the long_opts[], it was forgotten to mark the end of the list with an entry which consists completely of zeroes (cf. getopt_long(3): "The last element of the array has to be filled with zeroes.") Examples for this error: Try cbmformat --zzz d64copy --zzz Regards, Spiro. -- Spiro R. Trikaliotis http://www.trikaliotis.net/ |