summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorDavid Turner <digit@android.com>2010-03-16 17:25:53 -0700
committerAndroid Code Review <code-review@android.com>2010-03-16 17:25:53 -0700
commit3f192f55f06610a4aff8ce88548cfa4d1607f0e3 (patch)
treeff55494e053e9dc7ef1cd1c803ccdfc8e0fbfaae /libc
parentdd8f3c80f15981cae0a1ba72de0e9da0159ccb93 (diff)
parent699237baf54af3395311ad71ebedce20745c4cb2 (diff)
downloadbionic-3f192f55f06610a4aff8ce88548cfa4d1607f0e3.zip
bionic-3f192f55f06610a4aff8ce88548cfa4d1607f0e3.tar.gz
bionic-3f192f55f06610a4aff8ce88548cfa4d1607f0e3.tar.bz2
Merge "bionic: equalize the <unknown> program name between ssp.c and libc_init_common.c"
Diffstat (limited to 'libc')
-rw-r--r--libc/bionic/ssp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/bionic/ssp.c b/libc/bionic/ssp.c
index 20794f4..f83b2a4 100644
--- 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';
}