diff options
Diffstat (limited to 'source/client/smbmnt.c')
-rw-r--r-- | source/client/smbmnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/client/smbmnt.c b/source/client/smbmnt.c index ba2b1e9435d..ce406179cfd 100644 --- a/source/client/smbmnt.c +++ b/source/client/smbmnt.c @@ -148,8 +148,8 @@ do_mount(char *share_name, unsigned int flags, struct smb_mount_data *data) uname(&uts); release = uts.release; - major = strsep(&release, "."); - minor = strsep(&release, "."); + major = strtok(release, "."); + minor = strtok(NULL, "."); if (major && minor && atoi(major) == 2 && atoi(minor) < 4) { /* < 2.4, assume struct */ data1 = (char *) data; |