summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/libsmbclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c
index cdf26e6b23..bc70dc520b 100644
--- a/source3/libsmb/libsmbclient.c
+++ b/source3/libsmb/libsmbclient.c
@@ -121,7 +121,7 @@ smbc_parse_path(const char *fname, char *server, char *share, char *path,
if (*p == '/') {
- strncpy(server, lp_workgroup(), 16); /* FIXME: Danger here */
+ strncpy(server, (char *)lp_workgroup(), 16); /* FIXME: Danger here */
return 0;
}
@@ -412,7 +412,7 @@ int smbc_init(smbc_get_auth_data_fn fn, int debug)
}
- if (smbc_initialize) { /* Don't go through this if we have already done it */
+ if (smbc_initialized) { /* Don't go through this if we have already done it */
return 0;