From 8dc2f03ac3899d56ab6f7ffdfbb76f0d69b2181e Mon Sep 17 00:00:00 2001 From: stephena Date: Sun, 11 Jan 2009 22:05:37 +0000 Subject: [PATCH] And yet another Filesystem fix. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1612 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/unix/FSNodePOSIX.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stella/src/unix/FSNodePOSIX.cxx b/stella/src/unix/FSNodePOSIX.cxx index db0c72fbb..61954b016 100644 --- a/stella/src/unix/FSNodePOSIX.cxx +++ b/stella/src/unix/FSNodePOSIX.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: FSNodePOSIX.cxx,v 1.18 2009-01-11 21:55:03 stephena Exp $ +// $Id: FSNodePOSIX.cxx,v 1.19 2009-01-11 22:05:37 stephena Exp $ // // Based on code from ScummVM - Scumm Interpreter // Copyright (C) 2002-2004 The ScummVM project @@ -252,7 +252,7 @@ AbstractFilesystemNode* AbstractFilesystemNode::makeCurrentDirectoryFileNode() { char buf[MAXPATHLEN]; - string path = getcwd(buf, MAXPATHLEN) == buf ? buf : ""; + const string& path = getcwd(buf, MAXPATHLEN) == buf ? buf : ""; return new POSIXFilesystemNode(path, true); }