Skip to content

Commit 484e046

Browse files
authored
Merge pull request kivy#2416 from obfusk/patch-15
strip null bytes in call to androidembed.log()
2 parents b10a796 + 7aa5db8 commit 484e046

File tree

1 file changed

+2
-2
lines changed
  • pythonforandroid/bootstraps/common/build/jni/application/src

1 file changed

+2
-2
lines changed

pythonforandroid/bootstraps/common/build/jni/application/src/start.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ int main(int argc, char *argv[]) {
229229
" self.__buffer = ''\n"
230230
" def write(self, s):\n"
231231
" s = self.__buffer + s\n"
232-
" lines = s.split(\"\\n\")\n"
232+
" lines = s.split('\\n')\n"
233233
" for l in lines[:-1]:\n"
234-
" androidembed.log(l)\n"
234+
" androidembed.log(l.replace('\\x00', ''))\n"
235235
" self.__buffer = lines[-1]\n"
236236
" def flush(self):\n"
237237
" return\n"

0 commit comments

Comments
 (0)