This commit is contained in:
Daniel Ledda
2025-01-15 13:41:16 +01:00
parent 2ccfb65312
commit 3bea5bd848

View File

@@ -411,7 +411,6 @@ int gymTrackerAddExercise(Arena *arena, list<string> args) {
byte *newExerciseNameDb = buf + newEntryStartIndex + sizeof(GymLogDbEntry); byte *newExerciseNameDb = buf + newEntryStartIndex + sizeof(GymLogDbEntry);
memcpy(newExerciseNameDb, newExerciseName.str, newExerciseName.length); memcpy(newExerciseNameDb, newExerciseName.str, newExerciseName.length);
size_t bufSize = newEntryStartIndex + sizeof(GymLogDbEntry) + newExerciseName.length; size_t bufSize = newEntryStartIndex + sizeof(GymLogDbEntry) + newExerciseName.length;
log("%i\n", bufSize);
os_writeEntireFile(arena, DB_FILE_LOCATION, buf, bufSize); os_writeEntireFile(arena, DB_FILE_LOCATION, buf, bufSize);
} }
} }