Berthold Stoeger c4c57b287e Increase size of name_buffer to fit any integer
In libdivecomputer.c, name_buffer is formatted with calls like
 snprintf(name_buffer, 9, "%d cuft", rounded_size);
This works fine in the regular case, but it generates compiler
warnings, since theoretically the integer might produce up to
11 digits, leading to a truncation of the string.

Increasing the size of name_buffer to 17 chars silences these
warnings. This may seem like pointless warning-silencing.
Nevertheless, in the case of invalid data, it might make debugging
easier since, in the above case, the "cuft" is never truncated.
In total, it seems that this is a benign change with potential,
though in a very unlikely case, positive effects.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-01-05 00:29:20 +01:00
..
2017-11-18 21:57:33 +01:00
2017-12-27 17:14:43 -08:00
2017-11-25 20:13:01 +01:00
2017-04-29 13:32:55 -07:00
2017-12-26 14:25:57 -08:00
2018-01-04 08:21:43 -08:00
2018-01-04 08:21:43 -08:00
2018-01-04 08:21:43 -08:00
2017-10-26 14:37:39 +02:00
2017-04-29 13:32:55 -07:00
2017-05-26 15:52:04 -07:00
2017-12-26 15:57:31 -08:00
2017-12-25 19:47:57 +01:00
2017-12-21 15:11:15 +01:00
2017-12-26 14:22:52 -08:00
2018-01-04 08:21:43 -08:00
2017-11-22 19:22:29 +01:00
2017-10-08 19:41:54 +03:00
2017-12-17 10:25:01 -08:00
2017-05-26 15:44:36 -07:00
2017-12-21 15:11:15 +01:00
2017-12-21 00:04:30 +01:00
2017-11-25 20:13:01 +01:00
2017-12-28 17:30:25 +01:00
2017-07-19 06:21:23 -07:00
2017-11-19 12:20:43 -08:00
2017-11-25 20:13:01 +01:00
2017-12-14 17:01:05 +01:00
2017-12-26 15:57:45 -08:00
2017-04-29 13:32:55 -07:00
2017-12-17 10:25:01 -08:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-10-04 08:05:09 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-11-24 07:56:10 -08:00
2017-11-22 19:22:29 +01:00