if (ds->dir) { > strncpy(ds->dir, conn->dir, NETPATHLEN); > ds->dir[NETPATHLEN] = '\0';
i think this is okay, since the definition is char dir[NETPATHLEN+1]; - erik
if (ds->dir) { > strncpy(ds->dir, conn->dir, NETPATHLEN); > ds->dir[NETPATHLEN] = '\0';
i think this is okay, since the definition is char dir[NETPATHLEN+1]; - erik