Hi On Mon, 28 Jan 2008 22:45:13 +0100 Marcus Obst <[EMAIL PROTECTED]> wrote:
> gammu dies while issuing the following command (this should export entry
> 1 from the backup file as VCARD under output/1.vcf):
>
> $ gammu savefile VCARD21 output/1.vcf backup-2008-01-27 ME 1
> Segmentation fault
>
> In my example the target directory (output/) does not exist. Gammu does
> not check if the fopen() of the resulting file was successful. It just
> does a fwrite() which may (as in my case) segfault.
>
> Patch which checks the return value of fopen() appended.
Thanks for patch, I just commited it to upstream svn (while also fixing
some other places where fopen return value was not checked).
--
Michal Čihař | http://cihar.com | http://blog.cihar.com
signature.asc
Description: PGP signature

