aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-01-25 12:48:25 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-01-25 12:48:25 -0500
commit2e420a17f71d3bceba073f34cdfd402dbcecdb7a (patch)
tree0c84255889820c4424487e0e21e8b6f6e4036bad /gcc
parent3c86a619b57dc709a68840fda2060422065ff31d (diff)
downloadgcc-2e420a17f71d3bceba073f34cdfd402dbcecdb7a.zip
gcc-2e420a17f71d3bceba073f34cdfd402dbcecdb7a.tar.gz
gcc-2e420a17f71d3bceba073f34cdfd402dbcecdb7a.tar.bz2
(handle_directive): Fix typo...
(handle_directive): Fix typo: '\' caused next char to be copied blindly, which was an error if !traditional and if the next char was newline or one of <\'"/. From-SVN: r8804
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cccp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index d83fd98..a819ace 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -3740,7 +3740,7 @@ handle_directive (ip, op)
*cp++ = *xp++;
SKIP_WHITE_SPACE (xp);
}
- } else {
+ } else if (traditional && xp < bp) {
*cp++ = *xp++;
}
break;