removed pointless my_strcat() in translate3()

This commit is contained in:
stefan schippers 2024-08-29 07:56:22 +02:00
parent d06e999daf
commit eb7b9ae018
2 changed files with 2 additions and 1 deletions

View File

@ -766,6 +766,7 @@ void draw_symbol(int what,int c, int n,int layer,short tmp_flip, short rot,
cairo_font_face_destroy(xctx->cairo_font);
}
#endif
dbg(1, "drawing string: before translate(): text.txt_ptr=%s\n", text.txt_ptr);
my_strdup2(_ALLOC_ID_, &txtptr, translate(n, text.txt_ptr));
/* do another round of substitutions if some @var are found, but if not found leave @var as is */
dbg(1, "drawing string: str=%s prop=%s\n", txtptr, text.prop_ptr ? text.prop_ptr : "NULL");

View File

@ -4485,7 +4485,7 @@ const char *translate3(const char *s, int eat_escapes, const char *s1, const cha
my_strcat(_ALLOC_ID_, &result, ch);
}
if(c=='\0') {
my_strcat(_ALLOC_ID_, &result, "");
/* my_strcat(_ALLOC_ID_, &result, ""); */
break;
}
} /* while(1) */