savestring: Rename parameter 'size' to 'len'.
authorPedro Alves <palves@redhat.com>
Thu, 14 Feb 2013 17:09:00 +0000 (17:09 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 14 Feb 2013 17:09:00 +0000 (17:09 +0000)
commit57c3b6ede58a103b97baa10bef7d9d9031d2269b
tree6edf764e3b43b65853bd747c3b39c610b7d3cbf2
parent420f4384af4aac17ca68d8834519f18d6dbe0ee6
savestring: Rename parameter 'size' to 'len'.

It's better to avoid needless confusion, and call string length,
length, instead of size, which is usually used to refer to sizeof of
the string (len+1):

size_t len = strlen (str);
size_t size = sizeof (str);

Tested on x86_64 Fedora 17.

2013-02-14  Pedro Alves  <palves@redhat.com>

* utils.c (savestring): Rename parameter 'size' to 'len'.
gdb/ChangeLog
gdb/utils.c