/* Definitions for communicating with a remote tape drive.
- Copyright (C) 1988, 1992, 1996, 1997 Free Software Foundation, Inc.
+ Copyright 1988, 1992, 1996, 1997, 2001 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#define _remdev(Path) \
(!force_local_option && (rmt_path__ = strchr (Path, ':')) \
- && rmt_path__ > (Path) && rmt_path__[-1] != '/')
+ && rmt_path__ > (Path) && ! memchr (Path, rmt_path__ - (Path), '/'))
#define _isrmt(Fd) \
((Fd) >= __REM_BIAS)