Avoid usage of PATH_MAX. Submitted to bug-less@gnu.org. From ef652341ed8b2c14ac40312ccd4ed329cb69fd0c Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sat, 7 Mar 2020 14:57:19 +0100 Subject: [PATCH] Avoid usage of PATH_MAX. * filename.c (lrealpath): Have realpath allocate the buffer. Fixes compilation on the Hurd and avoids possible buffer overflow on other systems. --- filename.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filename.c b/filename.c index e420837..faa71b0 100644 --- a/filename.c +++ b/filename.c @@ -795,9 +795,9 @@ lrealpath(path) char *path; { #if HAVE_REALPATH - char rpath[PATH_MAX]; - if (realpath(path, rpath) != NULL) - return (save(rpath)); + char *rpath = NULL; + if ((rpath = realpath(path, rpath)) != NULL) + return (rpath); #endif return (save(path)); } -- 2.24.0 scripts'>koszko-scripts Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/mediastreamer2-srtp2.patch
AgeCommit message (Expand)Author
2020-04-05gnu: mediastreamer2: Move the tester files and HTML doc to separate outputs....The tester binary generated gets installed with about 20 MiB of data files, and the HTML documentation weighs another 500 KiB or so. Move them to separate outputs. * gnu/packages/patches/mediastreamer-srtp2.patch: Rename to... * gnu/packages/patches/mediastreamer2-srtp2.patch: ...this, to please 'guix lint'. * gnu/local.mk (dist_patch_DATA): Adapt. * gnu/packages/linphone.scm (mediastreamer2)[patches]: Likewise. [outputs]: Add the "doc" and "tester" outputs. [phases]: Add a phase to move the HTML doc and tester binary and data to the 'doc' and 'tester' outputs, respectively. [description]: Remove the unicode characters surrounding the word 'powerful'. Maxim Cournoyer