X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fcommon%2Fsyscall.c;h=fd5b82ab9873c3e083d5e0118aa45a5dd2bf56fa;hb=028f6515424e832ee10a1e4cb1f96ea241e2acae;hp=529a90f6d571872070702b7eb78867b898ba3c88;hpb=7f35e991971df570411a2688b948cd72adb4cf90;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/common/syscall.c b/sim/common/syscall.c index 529a90f6d5..fd5b82ab98 100644 --- a/sim/common/syscall.c +++ b/sim/common/syscall.c @@ -93,7 +93,7 @@ get_string (cb, sc, buf, buflen, addr) path name along with the syscall request, and cache the file name somewhere (or otherwise tweak this as desired). */ unsigned int count = (*sc->read_mem) (cb, sc, addr, p, 1); - + if (count != 1) return EINVAL; if (*p == 0)