From: Brian Paul Date: Fri, 23 Oct 2009 22:36:15 +0000 (-0600) Subject: mesa: fix broken _mesa_str_checksum() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0acb057ad16264b976b00aa7c6ecf285ca8c19e7;p=mesa.git mesa: fix broken _mesa_str_checksum() --- diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index 30fa55997ef..91d8d156b8f 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; }