Fix for PR 3978:
authorFred Fish <fnf@specifix.com>
Thu, 18 Nov 1993 16:34:43 +0000 (16:34 +0000)
committerFred Fish <fnf@specifix.com>
Thu, 18 Nov 1993 16:34:43 +0000 (16:34 +0000)
commit7855533586f9dbdce6ef1fc48b5ce5f4fc4e4f32
tree5c7734ab2d809758e597ff9ab9292dec0f9ee704
parent4f65eece262f61814e9dceadbd9822faf37044e2
Fix for PR 3978:

* valprint.c (val_print_string):  When looking for a null
terminator compare current bufsize to fetchlimit to determine
when to stop, instead of computing buffer+fetchlimit which
may overflow for very large limits (like "unlimited").
gdb/ChangeLog