diff options
author | ken <ken@FreeBSD.org> | 1998-11-15 23:12:42 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 1998-11-15 23:12:42 +0000 |
commit | 825aea0170f7896801e7153b6ee11a9879cf9498 (patch) | |
tree | a841676b490232b0a22565bebfc1e5a577ea00c0 /lib | |
parent | 23fa293e87aef82c624ae89fae2b6a370f7a08ed (diff) | |
download | FreeBSD-src-825aea0170f7896801e7153b6ee11a9879cf9498.zip FreeBSD-src-825aea0170f7896801e7153b6ee11a9879cf9498.tar.gz |
Fix an error message. (it was using an uninitialized variable)
Reported by: dan@math.berkeley.edu (Dan Strick)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcam/camlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcam/camlib.c b/lib/libcam/camlib.c index d4ba57e..10659d6 100644 --- a/lib/libcam/camlib.c +++ b/lib/libcam/camlib.c @@ -22,7 +22,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: camlib.c,v 1.1 1998/09/15 06:16:46 gibbs Exp $ + * $Id: camlib.c,v 1.2 1998/10/12 21:54:00 ken Exp $ */ #include <sys/types.h> @@ -586,7 +586,7 @@ cam_real_open_device(const char *path, int flags, struct cam_device *device, if ((fd = open(path, flags)) < 0) { sprintf(cam_errbuf, "%s: couldn't open passthrough device %s\n" - "%s: %s", func_name, newpath, func_name, + "%s: %s", func_name, path, func_name, strerror(errno)); goto crod_bailout; } |