Commit: e4968e7fda915d3c8d408b45c51d8f3614f213c5
Parent: ed881174ca207a712a7b3cb5d1e756253bacb974
Author: Alex Deymo <deymo@chromium.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-03-15 23:29:19
Tree: 0b4770ff6e2d561f3c11a39bcf2118c9ad9d2862

textfile: Fix a pointer arithmetic logic bug in read_key() A substraction of pointers ends up in a wrong computation of the size passed to strnpbrk() in read_key(). This patch fixes the pointer logic.

Diffstat

M src/textfile.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

View Full Diff | Patch