mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 04:48:00 +03:00
stop snprintfing from a string into itself
This commit is contained in:
parent
0ea480cad4
commit
ac0cae8250
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user