about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-06-11 19:00:44 +0300
committerNakidai <nakidai@disroot.org>2025-06-11 19:00:44 +0300
commitdcd13cb0045cf12fddc867fad1e402c98edeec8b (patch)
tree1727f703d4a0af804f91f9320e5f1a20e46b0708
parentb2e86523e97b343639a74ce64063bf566c939ddd (diff)
downloadfp-dcd13cb0045cf12fddc867fad1e402c98edeec8b.tar.gz
fp-dcd13cb0045cf12fddc867fad1e402c98edeec8b.zip
Fix minor issues
-rw-r--r--fp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fp.c b/fp.c
index ac9ef2d..823a1d4 100644
--- a/fp.c
+++ b/fp.c
@@ -113,7 +113,7 @@ void render(const char *buf, size_t bufi)
 	fprintf(stderr, "\r: %s\n", buf);
 	for (size_t i = 0; i < 5; ++i)
 		fprintf(stderr, "`%s'\n", results[i].name);
-	fprintf(stderr, "\033[6A\033[%dC", 2 + bufi);
+	fprintf(stderr, "\033[6A\033[%luC", 2 + bufi);
 	fflush(stderr);
 }
 
@@ -156,10 +156,10 @@ int main(int argc, char **argv)
 		} break;
 		}
 		render(buf, bufi);
-cont:
+cont:;
 	}
 end:
-	fprintf(stderr, "\033[6B\rYou've chosen `", results[0].name);
+	fprintf(stderr, "\033[6B\rYou've chosen `");
 	fflush(stderr);
 	fprintf(stdout, "%s", results[0].name);
 	fflush(stdout);