Avoid subtracting two pointers that don't point into the same block.
authorMatthew Wala <wala1@illinois.edu>
Wed, 30 Nov 2011 00:44:15 +0000 (01:44 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 30 Nov 2011 00:44:15 +0000 (01:44 +0100)
commitec2348da1754e807233e33beefdb732a119e4adc
tree903a8c66f61ffa00ed887dacb87075cd356a78d6
parenta5f6df2b1f3f0fdc73635de3ad285d21703dab18
Avoid subtracting two pointers that don't point into the same block.

* lib/argp-help.c (hol_append): Reorder pointer subtractions so that
only pointers into the same memory block are subtracted. We cannot
assume that sizeof (ptrdiff_t) == sizeof (void *).
ChangeLog
lib/argp-help.c