From f617f69be87cf542f6b91f1b72c3c0dcb024579e Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sun, 7 Apr 2024 09:27:00 +0200 Subject: [PATCH] cellRtc: remove wrong duplicate pos++ This would have increased pos by one too many. --- rpcs3/Emu/Cell/Modules/cellRtc.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellRtc.cpp b/rpcs3/Emu/Cell/Modules/cellRtc.cpp index 92c5e12da2..666f8816f6 100644 --- a/rpcs3/Emu/Cell/Modules/cellRtc.cpp +++ b/rpcs3/Emu/Cell/Modules/cellRtc.cpp @@ -690,11 +690,9 @@ error_code cellRtcParseRfc3339(vm::ptr pUtc, vm::cptr pszDate u32 pos = 19; if (pszDateTime[pos] == '.') { - pos++; - u32 mul = 100000; - for (char c = pszDateTime[pos++]; std::isdigit(c); c = pszDateTime[pos++]) + for (char c = pszDateTime[++pos]; std::isdigit(c); c = pszDateTime[++pos]) { date_time->microsecond += digit(c) * mul; mul /= 10;