teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame rpm-4.5.90-macrofix.patch

Jindrich Novy d12546
commit 3b9636cd69b81b6e23331bb797c0fdde79e97316
Jindrich Novy d12546
Author: Jindrich Novy <jnovy@redhat.com>
Jindrich Novy d12546
Date:   Thu Aug 14 13:08:09 2008 +0200
Jindrich Novy d12546
Jindrich Novy d12546
    Accept numerical characters in macro expansion (related to rhbz#456103)
Jindrich Novy d12546
Jindrich Novy d12546
diff --git a/build/expression.c b/build/expression.c
Jindrich Novy d12546
index 970ec05..83a4021 100644
Jindrich Novy d12546
--- a/build/expression.c
Jindrich Novy d12546
+++ b/build/expression.c
Jindrich Novy d12546
@@ -272,7 +272,7 @@ static int rdToken(ParseState state)
Jindrich Novy d12546
       char *temp;
Jindrich Novy d12546
       size_t ts;
Jindrich Novy d12546
 
Jindrich Novy d12546
-      for (ts=1; p[ts] && (risalpha(p[ts]) || p[ts] == '_'); ts++);
Jindrich Novy d12546
+      for (ts=1; p[ts] && (risalnum(p[ts]) || p[ts] == '_'); ts++);
Jindrich Novy d12546
       temp = xmalloc(ts+1);
Jindrich Novy d12546
       memcpy(temp, p, ts);
Jindrich Novy d12546
       p += ts-1;