builtin-apply.c: get rid of an unnecessary use of temporary array
authorJunio C Hamano <gitster@pobox.com>
Tue, 1 Sep 2009 09:18:29 +0000 (02:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Sep 2009 15:02:51 +0000 (08:02 -0700)
Instead of allocating a temporary array imglen[], copying contents to it
from another array img->line[], and then using imglen[], use the value
from img->line[], whose value does not change during the whole process.

This incidentally removes a use of C99 variable length array, which some
older compilers apparently are not happy with.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found