OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9560452
)
bionic: equalize the <unknown> program name between ssp.c and libc_init_common.c
author
André Goddard Rosa
<andre.goddard@gmail.com>
Fri, 5 Feb 2010 19:48:07 +0000
(17:48 -0200)
committer
André Goddard Rosa
<andre.goddard@gmail.com>
Fri, 5 Feb 2010 19:48:07 +0000
(17:48 -0200)
... for the consistency sake.
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
libc/bionic/ssp.c
patch
|
blob
|
history
diff --git
a/libc/bionic/ssp.c
b/libc/bionic/ssp.c
index
20794f4
..
f83b2a4
100644
(file)
--- a/
libc/bionic/ssp.c
+++ b/
libc/bionic/ssp.c
@@
-76,9
+76,9
@@
void __stack_chk_fail(void)
sigprocmask(SIG_BLOCK, &sigmask, NULL);
/* Use /proc/self/exe link to obtain the program name for logging
- * purposes. If it's not available, we set it to "
unknown
" */
+ * purposes. If it's not available, we set it to "
<unknown>
" */
if ((count = readlink("/proc/self/exe", path, sizeof(path) - 1)) == -1) {
- strlcpy(path, "
unknown
", sizeof(path));
+ strlcpy(path, "
<unknown>
", sizeof(path));
} else {
path[count] = '\0';
}