Browse Source

refactoring: updated printlf to return early if fakeinput was injected

remotes/origin/userinput
TheUltimateOptimist 11 months ago
parent
commit
cbb0248bfd
  1. 3
      src/userinput.c

3
src/userinput.c

@ -98,6 +98,9 @@ char *gets(char *message, unsigned long *minLength, unsigned long *maxLength) {
}
void printlf(long double value) {
if (fakeInput != NULL) {
return;
}
if (roundl(value) == value) {
printf("%.0Lf", value);
}

Loading…
Cancel
Save