/*
- * $Id: afp_config.c,v 1.22.6.3 2004-01-23 14:00:15 bfernhomberg Exp $
+ * $Id: afp_config.c,v 1.22.6.4 2004-01-25 11:52:33 bfernhomberg Exp $
*
* Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
* All Rights Reserved. See COPYRIGHT.
/* If specified use the FQDN to register with srvloc, otherwise use IP. */
p = NULL;
if (options->fqdn) {
- hostname = strdup(options->fqdn);
+ hostname = options->fqdn;
p = strchr(hostname, ':');
}
else
/*
- * $Id: afp_options.c,v 1.30.2.2.2.5 2004-01-24 18:05:26 bfernhomberg Exp $
+ * $Id: afp_options.c,v 1.30.2.2.2.6 2004-01-25 11:52:14 bfernhomberg Exp $
*
* Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
* Copyright (c) 1990,1993 Regents of The University of Michigan.
LOG(log_warning, logtype_afpd, "setting Unix codepage to '%s' failed", c);
}
else {
- if (opt = strdup(c))
- options->unixcodepage = strdup(c);
+ if ((opt = strdup(c)))
+ options->unixcodepage = opt;
}
}
LOG(log_warning, logtype_afpd, "setting Mac codepage to '%s' failed", c);
}
else {
- if (opt = strdup(c))
- options->maccodepage = strdup(c);
+ if ((opt = strdup(c)))
+ options->maccodepage = opt;
}
}