From fcd0cb3e19c4ceed84e72399fac1fbfbd13e1a0a Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Tue, 27 Sep 2016 18:52:18 +0000 Subject: [PATCH] #1233 Correction to r4573 --- samples/geotag.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/geotag.cpp b/samples/geotag.cpp index dd471f36..af581451 100644 --- a/samples/geotag.cpp +++ b/samples/geotag.cpp @@ -808,7 +808,7 @@ int main(int argc,const char* argv[]) if ( type == typeImage ) { time_t t = readImageTime(std::string(arg)) ; char buffer[1024]; - char* path = realpath(arg,NULL); + char* path = realpath(arg,buffer); if ( t && path ) { if ( options.verbose) printf("%s %ld %s",path,(long int)t,asctime(localtime(&t))); gFiles.push_back(path);