diff options
author | Jim Meyering <jim@meyering.net> | 1999-07-20 18:52:05 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-07-20 18:52:05 +0000 |
commit | 8478414c5d3131db7604399f80a3e04f4ac4c162 (patch) | |
tree | 5ceb623e5fb7a8c0a5244afaccd194d1d8028d33 /lib | |
parent | bca7546dcd2d68df2d0bc1abd7cefc1fe41a9010 (diff) | |
download | coreutils-8478414c5d3131db7604399f80a3e04f4ac4c162.tar.xz |
update comments
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mountlist.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/mountlist.c b/lib/mountlist.c index c2c77b3f0..760ef08e5 100644 --- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -155,6 +155,8 @@ xatoi (char *cp) /* Convert, in place, each unambiguous `\040' sequence in the NUL-terminated string, STR, to a single space. `unambiguous' means that it must not be immediately preceded by an odd number of backslash characters. */ +/* FIXME: should any other backslash-escaped sequences be translated? */ +/* FIXME: is the backslash counting necessary? */ static void translate_040_to_space (char *str) @@ -180,10 +182,10 @@ translate_040_to_space (char *str) continue; } - /* We found an unambiguous `\040'. Replace it with a space - and move everything following it back by 3 bytes. - The source and destination regions may overlap, so we have - to use memmove. */ + /* We found an unambiguous `\040'. Replace the `/' with a space + and shift the string after `040' so that it starts where the + first zero was. The source and destination regions may overlap, + so use memmove. */ *backslash = ' '; str = backslash + 1; /* Be sure to copy the trailing NUL byte, too. */ |