Date: Tue, 14 May 2013 00:16:05 +0200 From: Ed Schouten <ed@80386.nl> To: Jung-uk Kim <jkim@freebsd.org> Cc: svn-src-projects@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r250468 - projects/flex-sf/contrib/flex Message-ID: <CAJOYFBBY8HDThFKVxJvy23A_i_qFS_eTBE=jwc=rbQychQxpCw@mail.gmail.com> In-Reply-To: <201305101841.r4AIfEXw099976@svn.freebsd.org> References: <201305101841.r4AIfEXw099976@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
2013/5/10 Jung-uk Kim <jkim@freebsd.org>: > Modified: projects/flex-sf/contrib/flex/buf.c > ============================================================================== > --- projects/flex-sf/contrib/flex/buf.c Fri May 10 18:36:54 2013 (r250467) > +++ projects/flex-sf/contrib/flex/buf.c Fri May 10 18:41:14 2013 (r250468) > @@ -98,7 +98,7 @@ struct Buf *buf_linedir (struct Buf *buf > 1); /* NUL */ > if (!t) > flexfatal (_("Allocation of buffer for line directive failed")); > - for (dst = t + sprintf (t, "#line %d \"", lineno), src = filename; *src; *dst++ = *src++) > + for (dst = t + sprintf (t, "#line %d \"", lineno), src = (char *)filename; *src; *dst++ = *src++) > if (*src == '\\') /* escape backslashes */ > *dst++ = '\\'; > *dst++ = '"'; Wouldn't it be nicer to revert this piece, but to change "src" to be a "const char *"? -- Ed Schouten <ed@80386.nl>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJOYFBBY8HDThFKVxJvy23A_i_qFS_eTBE=jwc=rbQychQxpCw>