projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6e8c9fe
)
Silence warnings.
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Mon, 14 Jul 2008 13:09:44 +0000 (13:09 +0000)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Mon, 14 Jul 2008 13:09:44 +0000 (13:09 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2738
94cd875c
-1c1d-0410-91d2-
eb244daf1a30
src/h2ext.c
patch
|
blob
|
history
diff --git
a/src/h2ext.c
b/src/h2ext.c
index
84fce77
..
13366df
100644
(file)
--- a/
src/h2ext.c
+++ b/
src/h2ext.c
@@
-228,7
+228,7
@@
load_description(const char *file, file_format_t **head)
*buf = '\0';
while (1) {
- if ((eol = strchr(buf, '\n')) == NULL && (end - buf) < (sizeof(buf) - 1)) {
+ if ((eol = strchr(buf, '\n')) == NULL && (end - buf) < (signed) (sizeof(buf) - 1)) {
bytes_read = Eread(fd, end, sizeof(buf) - 1 - (end - buf));
/* EOF, implicit newline */
if (bytes_read == 0) {