summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-04-05 00:00:56 +0900
committerJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-04-05 00:00:56 +0900
commit9bd3c08e9c2826e48167b4a1ce7280873cf83bbd (patch)
tree72d08b2ac49c9c27c53e008dfbccbecb7724f058
parent3b1cc137e1c2ac25f8534865a71c1a22a00d4986 (diff)
physfs-serve: fix null termination
-rw-r--r--jni/physfs-serve-sdl-wrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jni/physfs-serve-sdl-wrap.c b/jni/physfs-serve-sdl-wrap.c
index ccdbce4..c0de9df 100644
--- a/jni/physfs-serve-sdl-wrap.c
+++ b/jni/physfs-serve-sdl-wrap.c
@@ -126,7 +126,7 @@ path_rewrite(struct physfs_serve *serve, char buf[], const size_t bufsz, struct
buf[strlen(buf) - 1] = 'm';
if (st->filetype == -1 && PHYSFS_stat(buf, st)) return false;
} else if (physfs_ends_with(buf, ".webm")) {
- buf[strlen(buf) - 1] = '0';
+ buf[strlen(buf) - 1] = 0;
buf[strlen(buf) - 2] = '4';
buf[strlen(buf) - 3] = 'p';
buf[strlen(buf) - 4] = 'm';