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);