*
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.24 2003/09/07 03:43:53 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.25 2003/10/10 01:34:51 momjian Exp $
*/
#include "postgres_fe.h"
char pw_name[128];
} pass_win32;
struct passwd_win32 *pw = &pass_win32;
+ unsigned long pwname_size = sizeof(pass_win32.pw_name) - 1;
pw->pw_uid = 1;
#endif
exit(1);
}
- GetUserName(pw->pw_name, sizeof(pw->pw_name)-1);
+ GetUserName(pw->pw_name, &pwname_size);
#endif
if (!limit_user_info)