<div dir="ltr">Does FSmalloc do anything special, or is it just a wrapper for historical reasons?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 7, 2014 at 7:02 PM, Alan Coopersmith <span dir="ltr"><<a href="mailto:alan.coopersmith@oracle.com" target="_blank">alan.coopersmith@oracle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Alan Coopersmith <<a href="mailto:alan.coopersmith@oracle.com">alan.coopersmith@oracle.com</a>><br>
---<br>
src/FSOpenServ.c | 3 +--<br>
1 file changed, 1 insertion(+), 2 deletions(-)<br>
<br>
diff --git a/src/FSOpenServ.c b/src/FSOpenServ.c<br>
index b8ccb2f..faebe13 100644<br>
--- a/src/FSOpenServ.c<br>
+++ b/src/FSOpenServ.c<br>
@@ -127,10 +127,9 @@ FSOpenServer(const char *server)<br>
return (FSServer *) NULL;<br>
}<br>
<br>
- if ((svr->server_name = FSmalloc(strlen(server) + 1)) == NULL) {<br>
+ if ((svr->server_name = strdup(server)) == NULL) {<br>
goto fail;<br>
}<br>
- (void) strcpy(svr->server_name, server);<br>
<br>
if ((svr->trans_conn = _FSConnectServer(svr->server_name)) == NULL) {<br>
goto fail;<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.9.2<br>
<br>
_______________________________________________<br>
<a href="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</a>: X.Org development<br>
Archives: <a href="http://lists.x.org/archives/xorg-devel" target="_blank">http://lists.x.org/archives/xorg-devel</a><br>
Info: <a href="http://lists.x.org/mailman/listinfo/xorg-devel" target="_blank">http://lists.x.org/mailman/listinfo/xorg-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br> Jasper<br>
</div>