$OpenBSD: patch-src_main_c,v 1.1.1.1 2013/04/29 14:22:32 bcallah Exp $
--- src/main.c.orig	Sun Apr 28 19:15:28 2013
+++ src/main.c	Sun Apr 28 19:15:37 2013
@@ -95,7 +95,7 @@ int main(int argc,char *argv[])
 	#endif
 	/* Find user's home directory, append path to config file to it
 	  and store the value in cfg_file. */
-	struct passwd *pw = getpwuid(syscall(__NR_getuid));
+	struct passwd *pw = getpwuid(getuid());
 	cfg_file=g_strconcat((gchar*)pw->pw_dir,"/.tpad.cfg",NULL);
 	// Import saved config or write default one if not found
 	config_setup((char*)g_strdup(cfg_file)); 
