diff options
author | Jeremy Allison <jra@samba.org> | 2004-12-16 21:12:29 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-12-16 21:12:29 +0000 |
commit | b1cab9e285d3cb8ea181ccfcdb77306cb56e2fd8 (patch) | |
tree | f88b0ef86b6f1dbf189c8a8b0e148b318fc58e18 /source/lib/sysquotas.c | |
parent | 25572d8e80bfc1260292a8c1ea61566235728a93 (diff) | |
download | samba-b1cab9e285d3cb8ea181ccfcdb77306cb56e2fd8.tar.gz samba-b1cab9e285d3cb8ea181ccfcdb77306cb56e2fd8.tar.xz samba-b1cab9e285d3cb8ea181ccfcdb77306cb56e2fd8.zip |
r4236: More *alloc fixes.
Jeremy.
Diffstat (limited to 'source/lib/sysquotas.c')
-rw-r--r-- | source/lib/sysquotas.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/lib/sysquotas.c b/source/lib/sysquotas.c index 1c5c7e8bd4f..61e2382bc9d 100644 --- a/source/lib/sysquotas.c +++ b/source/lib/sysquotas.c @@ -73,9 +73,9 @@ static int sys_path_to_bdev(const char *path, char **mntpath, char **bdev, char continue ; if (S.st_dev == devno) { - (*mntpath) = strdup(mnt->mnt_dir); - (*bdev) = strdup(mnt->mnt_fsname); - (*fs) = strdup(mnt->mnt_type); + (*mntpath) = SMB_STRDUP(mnt->mnt_dir); + (*bdev) = SMB_STRDUP(mnt->mnt_fsname); + (*fs) = SMB_STRDUP(mnt->mnt_type); if ((*mntpath)&&(*bdev)&&(*fs)) { ret = 0; } else { @@ -124,8 +124,8 @@ static int sys_path_to_bdev(const char *path, char **mntpath, char **bdev, char * but I don't know how * --metze */ - (*mntpath) = strdup(path); - (*bdev) = strdup(dev_disk); + (*mntpath) = SMB_STRDUP(path); + (*bdev) = SMB_STRDUP(dev_disk); if ((*mntpath)&&(*bdev)) { ret = 0; } else { @@ -152,7 +152,7 @@ static int sys_path_to_bdev(const char *path, char **mntpath, char **bdev, char (*bdev) = NULL; (*fs) = NULL; - (*mntpath) = strdup(path); + (*mntpath) = SMB_STRDUP(path); if (*mntpath) { ret = 0; } else { |