This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix tracepoint create_tsv_from_upload sprintf crash
- From: Tom Tromey <tromey at redhat dot com>
- To: Hui Zhu <teawater at gmail dot com>
- Cc: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Tue, 06 Dec 2011 08:43:17 -0700
- Subject: Re: [PATCH] Fix tracepoint create_tsv_from_upload sprintf crash
- References: <CANFwon36gagcq6igT+ECZ2C_93zUxLi6XnYTjbRVJU1s=6NXKA@mail.gmail.com>
>>>>> ">" == Hui Zhu <teawater@gmail.com> writes:
>> 2011-12-06 Hui Zhu <teawater@gmail.com>
>> * tracepoint.c (create_tsv_from_upload): Change sprintf to snprintf.
How about using xstrprintf instead?
Then the name can be as long as you like.
Tom