Re: POSIX incompatible strndup() usage

On Thu, 3 Apr 2008 15:29:21 +0200
Marcus von Appen <mva@xxxxxxxxxxxx> wrote:

> does it have a specific reason that you are using the GNU libc specific
> strndup() call in plugins/e2p_crypt.c and
> src/command/complete/e2_complete__path.c instead of g_strndup() from
> glib2?  If not, please change it to g_strndup(), so it can be used
> without much patching on !Linux operating systems :-).
> 
> A patch is attached.
Sorry Marcus, I did it again -(

Didn't bother to check strndup() availability, it seems like such a basic 
function so I assumed it would be in all string lib's.

Patch applied, thanks.

Regards
Tom


-- 
Users can unsubscribe from the list by sending email to 
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by 
logging into the web interface.

Other related posts: