19 lines
553 B
Diff
19 lines
553 B
Diff
Index: yasm-0.4.0/modules/preprocs/nasm/genmacro.c
|
|
===================================================================
|
|
--- yasm-0.4.0.orig/modules/preprocs/nasm/genmacro.c
|
|
+++ yasm-0.4.0/modules/preprocs/nasm/genmacro.c
|
|
@@ -102,10 +102,13 @@ main(int argc, char *argv[])
|
|
while (*strp == ' ' || *strp == '\t')
|
|
strp++;
|
|
len = strlen(strp);
|
|
+ if (len)
|
|
while (strp[len-1] == ' ' || strp[len-1] == '\t' ||
|
|
strp[len-1] == '\n') {
|
|
strp[len-1] = '\0';
|
|
len--;
|
|
+ if(len == 0)
|
|
+ break;
|
|
}
|
|
|
|
/* skip blank lines */
|