diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-04-25 22:16:44 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-04-25 22:16:44 +0200 |
commit | 7feab4dc5913c8d072d57e9cc7cc7b3815037fe8 (patch) | |
tree | 62b834b7657d63cdd85d984d15474c20101148ef /sys/src/cmd/acme | |
parent | 4adb1d68d1a958c2ee3c5cfe2e26968e13dcfc1b (diff) |
cc: simplify macexpand() and off-by-one error
the caller of macexpand() needs one more byte in
the buffer to append peekc.
make macexpand() actually check for buffer overflow.
just use strdup() to duplicate include file name
instead of the hunk dance.
move GETC() macro in cc.h
Diffstat (limited to 'sys/src/cmd/acme')
0 files changed, 0 insertions, 0 deletions