pike.git/
lib/
modules/
Sql.pmod/
pgsql_util.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2018-05-17
2018-05-17 07:48:41 by Stephen R. van den Berg <srb@cuci.nl>
89dbb5c8bc4a8eb42b8dc9652b66101b0630fdfe (
9
lines) (+
7
/-
2
)
[
Show
|
Annotate
]
Branch:
8.0
pgsql: Accomodate for sscanf() using range_error(0).
347:
protected final bool range_error(int howmuch) { #ifdef PG_DEBUG
-
if (howmuch <= 0)
-
error("Out of range %
d\n
", howmuch);
+
if (howmuch <
0) {
+
int available
=
unread(
0)
;
+
unread(available);
+
error("Out of range %
d %O %O\n
", howmuch
,
+
((string
)
this)[.. available-1], ((string)this)[available ..])
;
+
}
#endif if (fillread) { Thread.MutexKey lock = fillreadmux->lock();