lkml.org 
[lkml]   [2009]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Minor optimization in parse_subsystem_tracepoint_event

* Ulrich Drepper <drepper@redhat.com> wrote:

> Uses of strcat are almost always signs that someone is too lazy to think
> about the code a bit more carefully. One always has to know about the
> lengths of the strings involved to avoid buffer overflows.
>
> This is one case where the size of the object code for me is reduced by
> 38 bytes. The code should also be faster, especially if flags is non-NULL.
>
> Signed-off-by: Ulrich Drepper <drepper@redhat.com>

Applied, thanks a lot Ulrich!

Ingo


\
 
 \ /
  Last update: 2009-12-07 08:13    [W:0.031 / U:6.128 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site