From 4a707aec0bbcb7e0db3f97f31ff83b6831dbe0d4 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 12 Nov 2007 20:03:34 +0100 Subject: [PATCH] fixed possible inifinite loop when removing trailing spaces Fixed possible inifinite loop when removing trailing spaces. Athough this is not going to happen given current content of the files parsed, there's the possibility that the loop could never end. --- hald/linux/probing/probe-smbios.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hald/linux/probing/probe-smbios.c b/hald/linux/probing/probe-smbios.c index d46daba..2fffd23 100644 --- a/hald/linux/probing/probe-smbios.c +++ b/hald/linux/probing/probe-smbios.c @@ -205,7 +205,7 @@ main (int argc, char *argv[]) /* read the output of the child */ while(fgets (buf, sizeof(buf), f) != NULL) { - unsigned int i; + int i; unsigned int len; unsigned int tabs = 0; -- 1.5.3.7