From 6663936c3ed16b854656dec4c83fee7a74d5ec09 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 14 Jan 2019 20:18:06 -0500 Subject: Check for NULL copy or undo buffers in psfed --- bin/psfed.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/psfed.c b/bin/psfed.c index bb7997e2..dd40b3d5 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); } } -- cgit 1.4.1 '72558d92df1934a64533812d6db9e5e419dfb61c'>this commit dontfiles
summary refs log tree commit diff
path: root/bin/man1/hnel.1 (unfollow)
Commit message (Collapse)Author
2019-02-09Add css and inline HTML options to hiJune McEnroe
2019-02-09Combine all Keyword patternsJune McEnroe
2019-02-09Run hi -c after compiling hiJune McEnroe
2019-02-09Fix IRC output monospace option to emit once per lineJune McEnroe
2019-02-09Add output format options to hiJune McEnroe
The monospace option for IRC output doesn't really work, since IRCCloud puts a box around each span this way.
2019-02-09Avoid using SGRReset and IRCResetJune McEnroe
2019-02-08Use X macros for hi classesJune McEnroe
2019-02-08Don't open folds when using {}June McEnroe
2019-02-08Add sh syntax to hiJune McEnroe
2019-02-08Use [] to quote special characters in regexJune McEnroe
This looks much cleaner than having to double-escape backslash.
2019-02-08Improve ANSI output and base IRC on itJune McEnroe
2019-02-08Add hi -nJune McEnroe
2019-02-08Elaborate hi man pageJune McEnroe
2019-02-08Use set for parent in hiJune McEnroe
2019-02-08Switch back to semantic keyword grouping in hiJune McEnroe
2019-02-08Match only the basename in hiJune McEnroe
2019-02-07Add mdoc syntax to hiJune McEnroe
2019-02-07Support multi-line C macros in hiJune McEnroe
2019-02-07Detect .mk files as makeJune McEnroe
2019-02-07Add make syntax to hiJune McEnroe
2019-02-07Add IRC output to hiJune McEnroe
2019-02-07Improve C syntax accuracy and add Format classJune McEnroe
2019-02-07Factor out hi checkJune McEnroe
Fix subexpression bounds check and compile pattends.
2019-02-07Add Escape class to hiJune McEnroe
2019-02-07Add Todo class and parent syntax constraintJune McEnroe