summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-14 20:18:06 -0500
committerJune McEnroe <june@causal.agency>2019-01-14 20:18:06 -0500
commit51877fbd51e1a7c82f32d3db6fd490b4f1569ab7 (patch)
treefb5affabf56e4dbdc51e9819d5a1cb8f57a777b5 /bin
parentAdd cash.7 README (diff)
downloadsrc-51877fbd51e1a7c82f32d3db6fd490b4f1569ab7.tar.gz
src-51877fbd51e1a7c82f32d3db6fd490b4f1569ab7.zip
Check for NULL copy or undo buffers in psfed
Diffstat (limited to '')
-rw-r--r--bin/psfed.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/psfed.c b/bin/psfed.c
index 8b811ccd..63308ae5 100644
--- a/bin/psfed.c
+++ b/bin/psfed.c
@@ -419,9 +419,11 @@ static void inputEdit(char ch) {
 		}
 
 		break; case 'p': {
+			if (!edit.copy) break;
 			memcpy(glyph(edit.index), edit.copy, header.glyph.size);
 		}
 		break; case 'u': {
+			if (!edit.undo) break;
 			memcpy(glyph(edit.index), edit.undo, header.glyph.size);
 		}
 	}
r'>2019-12-19Ignore about-filterJune McEnroe 2019-12-19Fix matching make tags with no sourcesJune McEnroe 2019-12-19Avoid matching := assignments as tagsJune McEnroe 2019-12-18Hide line numbers when rendering mdocJune McEnroe Hack: output an extra <td> after rendering mdoc so that line numbers can be hidden based on there being three. This required splitting source-filter and about-filter since on about pages there is no table. 2019-12-18Customize cgit CSSJune McEnroe 2019-12-18Use :target rather than :focus pseudo-classJune McEnroe :target persists after you click on something else. 2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe NULs in the input cause an infinite loop in htmlEscape, not to mention regexes obviously not working, etc. 2019-12-16Post "cgit setup"June McEnroe