From 6591c034266b5acfe171296ca6bdcca552ad1ff6 Mon Sep 17 00:00:00 2001 From: didg Date: Tue, 26 Jan 2010 08:05:17 +0000 Subject: [PATCH 1/1] don't use & in getcwd parameter --- libatalk/util/unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libatalk/util/unix.c b/libatalk/util/unix.c index c54de60e..5ebd3e5c 100644 --- a/libatalk/util/unix.c +++ b/libatalk/util/unix.c @@ -1,5 +1,5 @@ /* - $Id: unix.c,v 1.2 2010-01-05 19:05:52 franklahm Exp $ + $Id: unix.c,v 1.3 2010-01-26 08:05:17 didg Exp $ Copyright (c) 2010 Frank Lahm This program is free software; you can redistribute it and/or modify @@ -51,7 +51,7 @@ extern const char *getcwdpath(void) static char cwd[MAXPATHLEN + 1]; char *p; - if ((p = getcwd(&cwd, MAXPATHLEN)) != NULL) + if ((p = getcwd(cwd, MAXPATHLEN)) != NULL) return p; else return strerror(errno); -- 2.39.2