<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:pochu27@gmail.com" title="Emilio Pozuelo Monfort <pochu27@gmail.com>"> <span class="fn">Emilio Pozuelo Monfort</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [patch] Fix build on Hurd without PATH_MAX"
href="https://bugs.freedesktop.org/show_bug.cgi?id=74313">bug 74313</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>pochu27@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [patch] Fix build on Hurd without PATH_MAX"
href="https://bugs.freedesktop.org/show_bug.cgi?id=74313#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [patch] Fix build on Hurd without PATH_MAX"
href="https://bugs.freedesktop.org/show_bug.cgi?id=74313">bug 74313</a>
from <span class="vcard"><a class="email" href="mailto:pochu27@gmail.com" title="Emilio Pozuelo Monfort <pochu27@gmail.com>"> <span class="fn">Emilio Pozuelo Monfort</span></a>
</span></b>
<pre> snprintf(buf, sizeof(buf), "PATH=%s", getenv("PATH"));
Won't this just write up to sizeof(buf) bytes, that is, up to sizeof(char *),
which is normally 4 or 8 bytes? I think you want to change sizeof(buf) with
strlen(getenv("PATH"))+6 (ideally caching the result in a new len variable to
avoid doing that calculation twice).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>