File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
*
7
7
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
8
8
*
9
- * $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.24 2003/09/07 03:43:53 momjian Exp $
9
+ * $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.25 2003/10/10 01:34:51 momjian Exp $
10
10
*/
11
11
#include "postgres_fe.h"
12
12
@@ -38,6 +38,7 @@ main(int argc, char *argv[])
38
38
char pw_name [128 ];
39
39
} pass_win32 ;
40
40
struct passwd_win32 * pw = & pass_win32 ;
41
+ unsigned long pwname_size = sizeof (pass_win32 .pw_name ) - 1 ;
41
42
42
43
pw -> pw_uid = 1 ;
43
44
#endif
@@ -113,7 +114,7 @@ main(int argc, char *argv[])
113
114
exit (1 );
114
115
}
115
116
116
- GetUserName (pw -> pw_name , sizeof ( pw -> pw_name ) - 1 );
117
+ GetUserName (pw -> pw_name , & pwname_size );
117
118
#endif
118
119
119
120
if (!limit_user_info )
You can’t perform that action at this time.
0 commit comments