File: 05_getc-fix

package info (click to toggle)
rungetty 1.2-16.1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 300 kB
  • sloc: ansic: 3,494; makefile: 30
file content (16 lines) | stat: -rw-r--r-- 464 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Author: Rhonda D'Vine <rhonda@debian.org>	vim:ft=diff:
Description: change type of c in do_prompt to signed int (BTS #160395)

Index: rungetty-1.2/rungetty.c
===================================================================
--- rungetty-1.2.orig/rungetty.c
+++ rungetty-1.2/rungetty.c
@@ -275,7 +275,7 @@ static void
 do_prompt (void)
 {
   FILE *fd;
-  char c;
+  signed int c;
 
   write (1, "\n", 1);		/* start a new line */
   if ((fd = fopen (ISSUE, "r")))