Previous patch was incorrect.

This commit is contained in:
mycroft 1993-05-04 05:50:21 +00:00
parent e811352a74
commit 21f39729d7

View File

@ -170,9 +170,9 @@ odoffset(argc, argvp)
*
* We assumes it's a file if the offset is bad.
*/
p = argc == 1 ? (*argvp)[0] : (*argvp)[1];
p = **argvp;
if (!p)
return;
if (*p != '+' && (argc < 2 ||
(!isdigit(p[0]) && (p[0] != 'x' || !ishexdigit(p[1])))))
return;