diff --git a/backend/common.c b/backend/common.c index 7f5a7106..7edaa571 100644 --- a/backend/common.c +++ b/backend/common.c @@ -28,9 +28,7 @@ int ustrlen(unsigned char data[]) { /* Local replacement for strlen() with unsigned char strings */ int i; - - i = -1; - do { i++; } while (data[i] != '\0'); + for (i=0;data[i];i++); return i; }