unifdef/fix-getline-splosion.patch
2010-01-15 20:52:09 +00:00

31 lines
932 B
Diff

diff -Nur unifdef-1.171.orig/unifdef.c unifdef-1.171/unifdef.c
--- unifdef-1.171.orig/unifdef.c 2006-04-25 17:45:42.000000000 -0400
+++ unifdef-1.171/unifdef.c 2010-01-15 15:44:24.000000000 -0500
@@ -206,7 +206,7 @@
static void error(const char *);
static int findsym(const char *);
static void flushline(bool);
-static Linetype getline(void);
+static Linetype unifdef_getline(void);
static Linetype ifeval(const char **);
static void ignoreoff(void);
static void ignoreon(void);
@@ -505,7 +505,7 @@
for (;;) {
linenum++;
- lineval = getline();
+ lineval = unifdef_getline();
trans_table[ifstate[depth]][lineval]();
debug("process %s -> %s depth %d",
linetype_name[lineval],
@@ -519,7 +519,7 @@
* help from skipcomment().
*/
static Linetype
-getline(void)
+unifdef_getline(void)
{
const char *cp;
int cursym;