Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8fd0f424
Commit
8fd0f424
authored
Apr 10, 2006
by
Romain Francoise
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gethomedir): Use xstrdup.
parent
f8f10777
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
src/ChangeLog
src/ChangeLog
+4
-0
src/xrdb.c
src/xrdb.c
+1
-1
No files found.
src/ChangeLog
View file @
8fd0f424
2006-04-10 Romain Francoise <romain@orebokech.com>
* xrdb.c (gethomedir): Use xstrdup.
2006-04-10 Andreas Schwab <schwab@suse.de>
* xrdb.c (gethomedir): Make sure to always return a pointer that
...
...
src/xrdb.c
View file @
8fd0f424
...
...
@@ -315,7 +315,7 @@ gethomedir ()
}
if
(
ptr
==
NULL
)
return
str
cpy
((
char
*
)
malloc
(
2
),
"/"
);
return
x
str
dup
(
"/"
);
copy
=
(
char
*
)
malloc
(
strlen
(
ptr
)
+
2
);
strcpy
(
copy
,
ptr
);
...
...
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