[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#46750: dpkg: [hurd] main/help.c: Don't use PATH_MAX

severity 46750 normal
reassign 46750 dpkg-iwj

Previously Marcus.Brinkmann@ruhr-uni-bochum.de wrote:
> I suggest changing the code in main/help.c to use appropriate combinations
> of strdup or malloc/realloc with strlen.

strdup isn't portable, but we have m_malloc. I've changed this in my
source to m_malloc the necessary space.

> Or you use sysconf to query a limit if it exists, and if not, you use one of
> the above methods.

sysconf also isn't portable, but we can use strlen(path) as well. That's
almost always too big, but usuall still smaller then MAX_PATH.


This combination of bytes forms a message written to you by Wichert Akkerman.
E-Mail: wichert@cs.leidenuniv.nl
WWW: http://www.wi.leidenuniv.nl/~wichert/

Attachment: pgpPVfMjkDNxp.pgp
Description: PGP signature

Reply to: