Correct me if I&#39;m wrong, but strdup doesn&#39;t seem to be a part of the C90 or C99 standard, but rather POSIX (which is a problem in Windows).<br><br>Compare:<br><a href="http://www.opengroup.org/onlinepubs/009695399/basedefs/string.h.html">http://www.opengroup.org/onlinepubs/009695399/basedefs/string.h.html</a> (POSIX implementation)<br>
<a href="http://www.cplusplus.com/reference/clibrary/cstring/">http://www.cplusplus.com/reference/clibrary/cstring/</a> (C99 and/or C++ implementation)<br><br><div class="gmail_quote">On 29 September 2010 15:27, Tolga Dalman <span dir="ltr">&lt;<a href="mailto:tolga.dalman@googlemail.com">tolga.dalman@googlemail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi,<br>
<br>
the attached patch replaces a malloc and strdup sequence by a plain<br>
strdup. Also, I fixed a trivial copy &amp; paste error in the error<br>
checking path.<br>
<br>
Thanks<br>
Tolga Dalman<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.16 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
iQEcBAEBAgAGBQJMoz7JAAoJEI0vwg8AaIlUdQ8IAMBt9g3dBTJ2kL6ZkuoH3mKj<br>
+aYHwM7QVQHQmsgX9iYDoHkoVd+gCTqpweDlx03Jhtg90fmOf1tlmiOuZG4wRqqS<br>
8PuTXf6MH+CMM/mjZuZRRUdBU7GTjR5FjNORLUrXCrFz/nMhG3NukgTyYiATv+22<br>
Ida3RQuB6lba0eKXwwTejq+NiWqu8+wX3xI906vhq5jV4TTBC2W8CrEyI6MlzLRp<br>
nvc2tsP6hM7m81hoPbyKfmBh6OMpFovPrVAf66AuiN2d1ZKdJviH2p+HSI1mq3F2<br>
ydaOm8guBgR42+MissNeBPb+7OvNlQHXZjyTpELpYDBq20wcXzbc3POy/nXBGXE=<br>
=gw62<br>
-----END PGP SIGNATURE-----<br>
<br>_______________________________________________<br>
physfs mailing list<br>
<a href="mailto:physfs@icculus.org">physfs@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/physfs" target="_blank">http://icculus.org/mailman/listinfo/physfs</a><br>
<br></blockquote></div><br>