From 3adfb088eed81fc2c9e40ac55018378d4975f469 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 28 Jan 2024 19:50:51 -0500 Subject: [PATCH] audio: Look extension from right, not left. * Source/Audio/openal_wrapper.cpp (decode_to_pcm): Find extension from the right (strrchr), not from the left, to avoid eagerly truncating a file name. Fixes: https://gitlab.com/osslugaru/lugaru/-/issues/124#note_1746570172 --- Source/Audio/openal_wrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Audio/openal_wrapper.cpp b/Source/Audio/openal_wrapper.cpp index cc4fc36..072fcb8 100644 --- a/Source/Audio/openal_wrapper.cpp +++ b/Source/Audio/openal_wrapper.cpp @@ -316,7 +316,7 @@ static void* decode_to_pcm(const char* _fname, ALenum& format, ALsizei& size, AL // !!! FIXME: if it's not Ogg, we don't have a decoder. I'm lazy. :/ char* fname = (char*)alloca(strlen(_fname) + 16); strcpy(fname, _fname); - char* ptr = strchr(fname, '.'); + char* ptr = strrchr(fname, '.'); if (ptr) { *ptr = '\0'; } base-commit: 6a58b62858d9c3c3630abf00bf43075f65a09d38 -- 2.41.0 refslogtreecommitdiff
path: root/build-aux/compile-all.scm
AgeCommit message (Expand)Author
2021-06-23build: Makefile splits Scheme compilation in four steps....Fixes <https://bugs.gnu.org/48963>. Reported by Julien Lepiller <julien@lepiller.eu>. This reduces peak memory consumption to something less unreasonable. * Makefile.am (make-go): Depend on 'make-*-go' targets; remove body. (guile-compilation-rule): New function. (MODULES_CORE, MODULES_PACKAGES, MODULES_SYSTEM, MODULES_CLI): New variables. <top level>: Call 'guile-compilation-rule' 4 times. * build-aux/compile-all.scm <top level>: Expect "--total" and "--processed". Take them into account when displaying progress reports. Ludovic Courtès
2021-06-18build: Remove Guile 2.2 workaround....* build-aux/compile-all.scm <top level>: Remove Guile 2.2 workaround. Ludovic Courtès
2020-04-12build: Cap build parallelism on i686....Works around <https://bugs.gnu.org/40522>. * build-aux/compile-all.scm (parallel-job-count*): New procedure. <top level>: Use it instead of 'parallel-job-count'. Ludovic Courtès
2019-06-25build: Report build errors via 'report-load-error'....* build-aux/compile-all.scm: Wrap 'compile-files' call in 'catch'. Attempt to resort to 'report-load-error' in (guix ui) to print the error. Ludovic Courtès
2019-04-19build: Show completion percentage while building....* build-aux/compile-all.scm (%): New procedure. (command-line): Use it to report completion. Ludovic Courtès