summaryrefslogtreecommitdiff
path: root/source3/lib/sysquotas.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-12-16 21:12:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:39 -0500
commit54fdd5c7dc98e9039d94bc6b45ee31cb1d363eac (patch)
tree3e777cddfa2c8a2da0540ff010d02d63c9894631 /source3/lib/sysquotas.c
parent46f0e330f1e455e3338a7e7a3b7a287df752fe1a (diff)
downloadsamba-54fdd5c7dc98e9039d94bc6b45ee31cb1d363eac.tar.gz
samba-54fdd5c7dc98e9039d94bc6b45ee31cb1d363eac.tar.bz2
samba-54fdd5c7dc98e9039d94bc6b45ee31cb1d363eac.zip
r4236: More *alloc fixes.
Jeremy. (This used to be commit 6b25a6e088390d33314ca69c8f17c869cec3904b)
Diffstat (limited to 'source3/lib/sysquotas.c')
-rw-r--r--source3/lib/sysquotas.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/lib/sysquotas.c b/source3/lib/sysquotas.c
index 1c5c7e8bd4..61e2382bc9 100644
--- a/source3/lib/sysquotas.c
+++ b/source3/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 {