Module Name:    src
Committed By:   joerg
Date:           Tue Feb 26 13:09:35 UTC 2019

Modified Files:
        src/usr.sbin/sysinst: run.c

Log Message:
Avoid string + int warning.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/sysinst/run.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/sysinst/run.c
diff -u src/usr.sbin/sysinst/run.c:1.7 src/usr.sbin/sysinst/run.c:1.8
--- src/usr.sbin/sysinst/run.c:1.7	Tue Nov 20 19:02:07 2018
+++ src/usr.sbin/sysinst/run.c	Tue Feb 26 13:09:35 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: run.c,v 1.7 2018/11/20 19:02:07 martin Exp $	*/
+/*	$NetBSD: run.c,v 1.8 2019/02/26 13:09:35 joerg Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -354,7 +354,7 @@ show_cmd(const char *scmd, struct winsiz
 	standend();
 	addstr("\n\n");
 	for (n = win->ws_col; (m = min(n, 30)) > 0; n -= m)
-		addstr( "------------------------------" + 30 - m);
+		addstr(&"------------------------------"[30 - m]);
 	refresh();
 
 	nrow = getcury(stdscr) + 1;

Reply via email to