pre-7, menuconfig, assignment to const

Kurt Huwig (kurt@huwig.de)
Mon, 18 Aug 1997 20:11:15 +0200 (CEST)


This is not nice:

(lxdialog.c, function main)

const char *title = NULL;
[...]
if (title && strlen(title) > atoi(argv[offset+4])-4)
title[atoi(argv[offset+4])-4] = 0;

The last 2 lines were introduced between pre-3 and pre-5. The command-line
string-argument 'title' is truncated by writing into the buffer of the
command-line arguments.

Is there any desire to let Linux compile _without_ warnings?

Kurt

-------------------------------------------------------------
"Try to remove the color-problem by restarting your computer
several times." (Microsoft-Internet Explorer README.TXT)