summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/pre.l b/src/pre.l
index ad9e630..b4a3787 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -2,7 +2,7 @@
*
*
*
- * Copyright (C) 1997-2005 by Dimitri van Heesch.
+ * Copyright (C) 1997-2006 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
@@ -915,8 +915,11 @@ QCString removeMarkers(const char *s)
pc=c;
c=*++p;
}
- result+=c;
- p++;
+ if (*p)
+ {
+ result+=c;
+ p++;
+ }
}
}
break;