stop snprintfing from a string into itself

This commit is contained in:
Isaac Visintainer 2019-02-05 18:58:47 -08:00
parent 0ea480cad4
commit ac0cae8250

View File

@ -1876,9 +1876,10 @@ _raft_grab(u3_noun rus)
mkdir(nam_c, 0700);
}
snprintf(nam_c, 2048, "%s/%s.txt", nam_c, wen_c);
c3_c man_c[2048];
snprintf(man_c, 2048, "%s/%s.txt", nam_c, wen_c);
fil_u = fopen(nam_c, "w");
fil_u = fopen(man_c, "w");
fprintf(fil_u, "%s\r\n", wen_c);
free(wen_c);