summaryrefslogtreecommitdiff
path: root/src/mesa/main/arbparse.c
diff options
context:
space:
mode:
authorKarl Rasche <karlrasche@gmail.com>2003-12-09 19:14:41 +0000
committerKarl Rasche <karlrasche@gmail.com>2003-12-09 19:14:41 +0000
commit2e5ec27845930607ecd3f545b8f0a46aa09b52fd (patch)
tree8fcc710a09f52a1060f1fe4c7cf153d7be46b43b /src/mesa/main/arbparse.c
parenta8a4ad452ee3b7c99737cee053f849f3b5039988 (diff)
Arg. I can't code.. Test that we don't recongnize '0' as having a leading zero..
Diffstat (limited to 'src/mesa/main/arbparse.c')
-rw-r--r--src/mesa/main/arbparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/arbparse.c b/src/mesa/main/arbparse.c
index 25c1d7b7ad..fac0d510f6 100644
--- a/src/mesa/main/arbparse.c
+++ b/src/mesa/main/arbparse.c
@@ -2916,7 +2916,7 @@ parse_float (GLubyte ** inst, struct arb_program *Program)
* the .). We can have leading 0's here, which parse_integer will ignore,
* so we'll check for those first
*/
- while (**inst == '0')
+ while ((**inst == '0') && ( *(*inst+1) != 0))
{
leading_zeros++;
(*inst)++;