libgpgme error

Kaustubh Gadkari kaustubh.gadkari at
Tue Apr 14 16:51:40 CEST 2009


>    size_t uDataSize = sData.size();
> [...]
>    else if (-1 == (lRet = gpgme_data_write(tData, sData.c_str(), uDataSize))
>             || uDataSize != (size_t) lRet
>             || 0 != (lRet = gpgme_data_seek(tData, 0, SEEK_SET)))
> What is the size of your off_t?  Did you really follow the instructions
> in the "Largefile Support (LFS)" section of the manual?

off_t is 4 bytes, although I am not sure how that could be a problem,
since the error I get does not occur on the line where off_t is used.
I've tried this program out on other Ubuntu, FreeBSD and MacOS X
boxes, and it runs correctly on all of them, if that helps narrow down
the problem.


> Shalom-Salam,
>   Werner
> p.s.
> For better readability I strongly suggest not to use long else-if chains
> but return or goto statements.  Given that the English language is
> written left to right, it is also better to follow this practise and
> avoid the ill advised method of always writing constants in a comparison
> on the left.
> --
> Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.

Kaustubh Gadkari
kaustubh [dot] gadkari [at] gmail [dot] com

More information about the Gnupg-users mailing list