diff options
author | Jeremy Allison <jra@samba.org> | 2007-11-15 14:19:52 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-15 14:19:52 -0800 |
commit | 68be9a820059ee96dd26c527efd7c14e679d3f2c (patch) | |
tree | c3c853a01013fc7977ab02a31e673fe17b4135e6 /source3/lib/util_file.c | |
parent | 8e1b0f81c27dc332560f19de27fb86ac96c59775 (diff) | |
download | samba-68be9a820059ee96dd26c527efd7c14e679d3f2c.tar.gz samba-68be9a820059ee96dd26c527efd7c14e679d3f2c.tar.bz2 samba-68be9a820059ee96dd26c527efd7c14e679d3f2c.zip |
More pstring removal. This one was tricky. I had to add
one horror (pstring_clean_name()) which will have to
remain until I've removed all pstrings from the client code.
Jeremy.
(This used to be commit 1ea3ac80146b83c2522b69e7747c823366a2b47d)
Diffstat (limited to 'source3/lib/util_file.c')
-rw-r--r-- | source3/lib/util_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_file.c b/source3/lib/util_file.c index 673a15df38..b628b06cc6 100644 --- a/source3/lib/util_file.c +++ b/source3/lib/util_file.c @@ -105,9 +105,9 @@ static char *file_pload(char *syscmd, size_t *size) { int fd, n; char *p; - pstring buf; + char buf[1024]; size_t total; - + fd = sys_popen(syscmd); if (fd == -1) { return NULL; |