chiark
/
gitweb
/
~mdw
/
qmail
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
qmail-smtpd: Validation of recipient mailbox names.
[qmail]
/
substdio.h
diff --git
a/substdio.h
b/substdio.h
index 7a0de6e3ae6ea9266a7cf6646489cd465f28a5d2..c3f7f7d3c36c626b7d550007e1910894ecccfcbf 100644
(file)
--- a/
substdio.h
+++ b/
substdio.h
@@
-36,6
+36,12
@@
extern void substdio_seek();
#define substdio_PEEK(s) ( (s)->x + (s)->n )
#define substdio_SEEK(s,len) ( ( (s)->p -= (len) ) , ( (s)->n += (len) ) )
#define substdio_PEEK(s) ( (s)->x + (s)->n )
#define substdio_SEEK(s,len) ( ( (s)->p -= (len) ) , ( (s)->n += (len) ) )
+#define substdio_BPUTC(s,c) \
+ ( ((s)->n != (s)->p) \
+ ? ( (s)->x[(s)->p++] = (c), 0 ) \
+ : substdio_bput((s),&(c),1) \
+ )
+
extern int substdio_copy();
#endif
extern int substdio_copy();
#endif