mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
Update Android port
* exec/trace.c (handle_readlinkat): Adjust commentary to match behavior. * src/android.c (android_get_keysym_name): NULL terminate *name_return.
This commit is contained in:
parent
1a9402b3c3
commit
916ef57489
@ -899,10 +899,10 @@ handle_exec (struct exec_tracee *tracee, USER_REGS_STRUCT *regs)
|
|||||||
CALLNO is the system call number, and REGS are the current user
|
CALLNO is the system call number, and REGS are the current user
|
||||||
registers of the TRACEE.
|
registers of the TRACEE.
|
||||||
|
|
||||||
If the first argument of a `readlinkat' system call is AT_FDCWD,
|
If the file name specified in either a `readlink' or `readlinkat'
|
||||||
and the file name specified in either a `readlink' or `readlinkat'
|
|
||||||
system call is `/proc/self/exe', write the name of the executable
|
system call is `/proc/self/exe', write the name of the executable
|
||||||
being run into the buffer specified in the system call.
|
being run into the buffer specified in the system call. Do not
|
||||||
|
handle relative file names at the moment.
|
||||||
|
|
||||||
Return the number of bytes written to the tracee's buffer in
|
Return the number of bytes written to the tracee's buffer in
|
||||||
*RESULT.
|
*RESULT.
|
||||||
|
@ -6151,6 +6151,7 @@ android_get_keysym_name (int keysym, char *name_return, size_t size)
|
|||||||
NULL);
|
NULL);
|
||||||
android_exception_check_nonnull ((void *) buffer, string);
|
android_exception_check_nonnull ((void *) buffer, string);
|
||||||
strncpy (name_return, buffer, size - 1);
|
strncpy (name_return, buffer, size - 1);
|
||||||
|
name_return[size] = '\0';
|
||||||
|
|
||||||
(*android_java_env)->ReleaseStringUTFChars (android_java_env,
|
(*android_java_env)->ReleaseStringUTFChars (android_java_env,
|
||||||
(jstring) string,
|
(jstring) string,
|
||||||
|
Loading…
Reference in New Issue
Block a user