kopia lustrzana https://gitlab.com/sane-project/website
64 wiersze
2.2 KiB
HTML
64 wiersze
2.2 KiB
HTML
<!-- received="Tue Apr 1 13:38:50 1997 MST" -->
|
|
<!-- sent="01 Apr 1997 13:25:36 -0700" -->
|
|
<!-- name="Gordon Matzigkeit" -->
|
|
<!-- email="gord@m-tech.ab.ca" -->
|
|
<!-- subject="sane-0.5: trivial strndup fix" -->
|
|
<!-- id="9704012050.ZM9300@medchem2.pharmazie.uni-halle.de" -->
|
|
<!-- inreplyto="" -->
|
|
<title>sane-devel: sane-0.5: trivial strndup fix</title>
|
|
<h1>sane-0.5: trivial strndup fix</h1>
|
|
<b>Gordon Matzigkeit</b> (<a href="mailto:gord@m-tech.ab.ca"><i>gord@m-tech.ab.ca</i></a>)<br>
|
|
<i>01 Apr 1997 13:25:36 -0700</i>
|
|
<p>
|
|
<ul>
|
|
<li> <b>Messages sorted by:</b> <a href="date.html#37">[ date ]</a><a href="index.html#37">[ thread ]</a><a href="subject.html#37">[ subject ]</a><a href="author.html#37">[ author ]</a>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0038.html">David Mosberger-Tang: "sane-0.51 available"</a>
|
|
<li> <b>Previous message:</b> <a href="0036.html">Mathias Weigt: "experiences with MUSTEK and HP"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|
|
<!-- body="start" -->
|
|
Hi!<br>
|
|
<p>
|
|
The following patch fixes a problem where strndup is not defined in<br>
|
|
the C library but strdup is:<br>
|
|
<p>
|
|
--- strndup.c~ Sun Mar 30 22:21:09 1997<br>
|
|
+++ strndup.c Tue Apr 1 13:23:51 1997<br>
|
|
@@ -20,7 +20,7 @@<br>
|
|
<br>
|
|
#include <string.h><br>
|
|
<br>
|
|
-#ifndef HAVE_STRDUP<br>
|
|
+#ifndef HAVE_STRNDUP<br>
|
|
<br>
|
|
char *<br>
|
|
strndup (const char * s, size_t n)<br>
|
|
@@ -33,4 +33,4 @@<br>
|
|
return clone;<br>
|
|
}<br>
|
|
<br>
|
|
-#endif /* !HAVE_STRDUP */<br>
|
|
+#endif /* !HAVE_STRNDUP */<br>
|
|
<p>
|
|
<pre>
|
|
--
|
|
Gord Matzigkeit | Proudly running pieces of the GNU operating system.
|
|
gord@m-tech.ab.ca | Jacques Cousteau loved programming in assembler.
|
|
<p>
|
|
<pre>
|
|
--
|
|
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
|
|
To unsubscribe: mail -s unsubscribe <a href="mailto:sane-devel-request@listserv.azstarnet.com">sane-devel-request@listserv.azstarnet.com</a>
|
|
</pre>
|
|
<!-- body="end" -->
|
|
<p>
|
|
<ul>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0038.html">David Mosberger-Tang: "sane-0.51 available"</a>
|
|
<li> <b>Previous message:</b> <a href="0036.html">Mathias Weigt: "experiences with MUSTEK and HP"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|