svn commit: r250468 - projects/flex-sf/contrib/flex
Ed Schouten
ed at 80386.nl
Mon May 13 22:16:06 UTC 2013
2013/5/10 Jung-uk Kim <jkim at 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 at 80386.nl>
More information about the svn-src-projects
mailing list