Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
46013500
Commit
46013500
authored
Aug 14, 1993
by
Richard M. Stallman
Browse files
(getpwuid): Declare it as in xrdb.c.
(init_filelock): Don't use return value of strcpy.
parent
11378c41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/filelock.c
src/filelock.c
+6
-3
No files found.
src/filelock.c
View file @
46013500
...
...
@@ -42,7 +42,9 @@ extern int errno;
extern
char
*
egetenv
();
extern
char
*
strcpy
();
#ifndef __386bsd__
#if defined (__bsdi__) || defined (DECLARE_GETPWUID_WITH_UID_T)
extern
struct
passwd
*
getpwuid
(
uid_t
);
#else
extern
struct
passwd
*
getpwuid
();
#endif
...
...
@@ -437,8 +439,9 @@ init_filelock ()
/* Make sure it ends with a slash. */
if
(
lock_path
[
strlen
(
lock_path
)
-
1
]
!=
'/'
)
{
lock_path
=
strcpy
((
char
*
)
xmalloc
(
strlen
(
lock_path
)
+
2
),
lock_path
);
char
*
new_path
=
(
char
*
)
xmalloc
(
strlen
(
lock_path
)
+
2
);
strcpy
(
new_path
,
lock_path
);
lock_path
=
new_path
;
strcat
(
lock_path
,
"/"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment