summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/wordexp.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-06-30 13:55:08 +0000
committertjr <tjr@FreeBSD.org>2004-06-30 13:55:08 +0000
commit681eb0632788baeac2d52b46d3a3198f0b34138e (patch)
tree3ff6af94bbf0e19e7bc33daa334cc38007cf2a9d /lib/libc/gen/wordexp.c
parentf740ad83d3736db1e7c9aabae9db8100598ac267 (diff)
downloadFreeBSD-src-681eb0632788baeac2d52b46d3a3198f0b34138e.zip
FreeBSD-src-681eb0632788baeac2d52b46d3a3198f0b34138e.tar.gz
Fix typo: WRDE_DOOFS -> WRDE_DOOFFS.
Noticed by: Stoned Elipot
Diffstat (limited to 'lib/libc/gen/wordexp.c')
-rw-r--r--lib/libc/gen/wordexp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/wordexp.c b/lib/libc/gen/wordexp.c
index 46ccb2f..a437543 100644
--- a/lib/libc/gen/wordexp.c
+++ b/lib/libc/gen/wordexp.c
@@ -155,12 +155,12 @@ we_askshell(const char *words, wordexp_t *we, int flags)
*/
sofs = we->we_nbytes;
vofs = we->we_wordc;
- if ((flags & (WRDE_DOOFS|WRDE_APPEND)) == (WRDE_DOOFS|WRDE_APPEND))
+ if ((flags & (WRDE_DOOFFS|WRDE_APPEND)) == (WRDE_DOOFFS|WRDE_APPEND))
vofs += we->we_offs;
we->we_wordc += nwords;
we->we_nbytes += nbytes;
if ((nwv = realloc(we->we_wordv, (we->we_wordc + 1 +
- (flags & WRDE_DOOFS ? we->we_offs : 0)) *
+ (flags & WRDE_DOOFFS ? we->we_offs : 0)) *
sizeof(char *))) == NULL) {
_close(pdes[0]);
_waitpid(pid, &status, 0);
@@ -194,7 +194,7 @@ we_askshell(const char *words, wordexp_t *we, int flags)
* Break the null-terminated expanded word strings out into
* the vector.
*/
- if (vofs == 0 && flags & WRDE_DOOFS)
+ if (vofs == 0 && flags & WRDE_DOOFFS)
while (vofs < we->we_offs)
we->we_wordv[vofs++] = NULL;
p = we->we_strings + sofs;
OpenPOWER on IntegriCloud