From 51877fbd51e1a7c82f32d3db6fd490b4f1569ab7 Mon Sep 17 00:00:00 2001 From: Curtis 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(+) 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); } } -- cgit 1.4.1