Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc: Document userplex' use of setsid().
[ashd.git]
/
lib
/
bufio.c
diff --git
a/lib/bufio.c
b/lib/bufio.c
index
c08e9dd
..
11d8c04
100644
(file)
--- a/
lib/bufio.c
+++ b/
lib/bufio.c
@@
-289,11
+289,11
@@
int bioprintf(struct bufio *bio, const char *format, ...)
va_start(args, format);
ret = vsnprintf(bio->wbuf.b + bio->wbuf.d, bio->wbuf.s - bio->wbuf.d, format, args);
va_end(args);
va_start(args, format);
ret = vsnprintf(bio->wbuf.b + bio->wbuf.d, bio->wbuf.s - bio->wbuf.d, format, args);
va_end(args);
- if(ret <
=
bio->wbuf.s - bio->wbuf.d) {
+ if(ret < bio->wbuf.s - bio->wbuf.d) {
bio->wbuf.d += ret;
return(0);
}
bio->wbuf.d += ret;
return(0);
}
- if(biowensure(bio, ret) < 0)
+ if(biowensure(bio, ret
+ 1
) < 0)
return(-1);
}
}
return(-1);
}
}