| commit | acfae0c117f32a89273bd231de446937a85f3258 | [log] [tgz] |
|---|---|---|
| author | Marcus Meissner <marcus@jet.franken.de> | Sat May 08 18:29:10 1999 +0000 |
| committer | Alexandre Julliard <julliard@winehq.org> | Sat May 08 18:29:10 1999 +0000 |
| tree | 317abf6706d1b510e911d7bedcf1cb221b1bf7ff | |
| parent | 4a3b0e3080a0e372a5bb410d64b9ccba311e79c4 [diff] [blame] |
Fixed off by 1 error in section code (did not return len-2 on buffer overflow in some cases, but len-1).
diff --git a/files/profile.c b/files/profile.c index 9c22e3a..1fc08dc 100644 --- a/files/profile.c +++ b/files/profile.c
@@ -579,7 +579,7 @@ } } *buffer = '\0'; - if (len < 1) + if (len <= 1) /*If either lpszSection or lpszKey is NULL and the supplied destination buffer is too small to hold all the strings, the last string is truncated and followed by two null characters.