diff options
author | Brian Paul <brianp@vmware.com> | 2009-10-23 16:36:15 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-10-23 16:36:15 -0600 |
commit | 0acb057ad16264b976b00aa7c6ecf285ca8c19e7 (patch) | |
tree | 38163dc494b8673a38fbe36a2961229c08879fbb /src/mesa/main | |
parent | 2d17dbfb5346b6d75e87c839148cbe125bf5cd6d (diff) |
mesa: fix broken _mesa_str_checksum()
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/imports.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index 30fa55997e..91d8d156b8 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -934,9 +934,9 @@ _mesa_str_checksum(const char *str) unsigned int sum, i; const char *c; sum = i = 1; - for (c = str; *c; c++) + for (c = str; *c; c++, i++) sum += *c * (i % 100); - return sum; + return sum + i; } |