Compare commits

..

1 commit

Author SHA1 Message Date
transifex-integration[bot]
e7df92b2b5
Merge 9d3498f01e into ef5859437a 2024-03-01 21:33:46 +01:00
2 changed files with 2 additions and 4 deletions

View file

@ -161,9 +161,7 @@ char *get_local_dir(const char *url, const char *branch)
static char *move_local_cache(struct git_info *info)
{
char *old_path = get_local_dir(info->url, info->branch);
char *new_path = move_away(old_path);
free(old_path);
return new_path;
return move_away(old_path);
}
static int check_clean(const char *path, unsigned int status, void *payload)

View file

@ -2261,7 +2261,7 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size, struct divelog *log)
/* Recording the starting battery status to extra data */
if (battery_start.volt1) {
size_t stringsize = snprintf(NULL, 0, "%dmV (%d%%)", battery_start.volt1, battery_start.percent1) + 1;
char *ptr = malloc(stringsize);
char *ptr = malloc(size);
if (ptr) {
snprintf(ptr, stringsize, "%dmV (%d%%)", battery_start.volt1, battery_start.percent1);