commit ac8811009350c545a2f2e97e75f67108513d605e
parent 83539eacb9f88aa1c98929793314a08bfd9de265
Auteur: Loïc Daignault-Pichette <loic@asteride.xyz>
Date: Sun, 15 Feb 2026 13:19:45 -0500
Chercher vraiment les symboles
Une erreur dans la routine tfm_symb_chercher() l’empêchait de trouver les
symboles d’un tfm.
Diffstat:
1 fichier modifié, 2 insertions(+), 2 suppressions(-)
diff --git a/tfm.c b/tfm.c
@@ -177,8 +177,8 @@ tfm_symb_chercher(struct tampinf *ti, char *symb, size_t lngr)
ctn = tampinf_ctn(ti);
- for (pos = 0; tampinf_dedans(ti, pos); pos += n + 1) {
- n = ((unsigned char *)ctn)[pos];
+ for (pos = 0; tampinf_dedans(ti, pos); pos += n) {
+ n = ((unsigned char *)ctn)[pos++];
if (strncmp(symb, ctn + pos, n) == 0)
return 0;
}