Annotation of /trunk/hal/patches/hal-0.5.10-fixed-possible-inifinite-loop-when-removing-trailing.patch
Parent Directory | Revision Log
Revision 597 -
(hide annotations)
(download)
Mon May 19 19:05:19 2008 UTC (16 years, 4 months ago) by niro
File size: 948 byte(s)
Mon May 19 19:05:19 2008 UTC (16 years, 4 months ago) by niro
File size: 948 byte(s)
-gentoo patches
1 | niro | 597 | From 4a707aec0bbcb7e0db3f97f31ff83b6831dbe0d4 Mon Sep 17 00:00:00 2001 |
2 | From: Guillem Jover <guillem.jover@nokia.com> | ||
3 | Date: Mon, 12 Nov 2007 20:03:34 +0100 | ||
4 | Subject: [PATCH] fixed possible inifinite loop when removing trailing spaces | ||
5 | |||
6 | Fixed possible inifinite loop when removing trailing spaces. Athough | ||
7 | this is not going to happen given current content of the files | ||
8 | parsed, there's the possibility that the loop could never end. | ||
9 | --- | ||
10 | hald/linux/probing/probe-smbios.c | 2 +- | ||
11 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
12 | |||
13 | diff --git a/hald/linux/probing/probe-smbios.c b/hald/linux/probing/probe-smbios.c | ||
14 | index d46daba..2fffd23 100644 | ||
15 | --- a/hald/linux/probing/probe-smbios.c | ||
16 | +++ b/hald/linux/probing/probe-smbios.c | ||
17 | @@ -205,7 +205,7 @@ main (int argc, char *argv[]) | ||
18 | /* read the output of the child */ | ||
19 | while(fgets (buf, sizeof(buf), f) != NULL) | ||
20 | { | ||
21 | - unsigned int i; | ||
22 | + int i; | ||
23 | unsigned int len; | ||
24 | unsigned int tabs = 0; | ||
25 | |||
26 | -- | ||
27 | 1.5.3.7 | ||
28 |