Alex Smith
27e5f025f1
Don't use a plain %s when writing to a buffer
...
My compiler was understandably concerned about a potential buffer
overflow here. I don't think the string could get long enough to
cause that to happen, but it's hard to be certain. It's much safer
to limit the length of the string so that it fits in the buffer, as
done here, and if there really wasn't a problem the change will
cause no harm at all. (If there was, the string will be truncated
rather than corrupting memory. This code is in showing the
config-file version of a status highlight, something where
truncated text will probably be obvious to the user.)
2017-11-01 15:24:52 +00:00
..
2015-03-17 18:44:53 +02:00
2017-10-06 01:21:06 +03:00
2016-02-01 17:28:52 -08:00
2017-10-09 15:27:24 -07:00
2017-10-08 03:29:16 -07:00
2017-10-08 18:12:08 -07:00
2017-10-01 14:39:35 +03:00
2017-10-24 00:37:21 -07:00
2017-11-01 15:24:52 +00:00
2017-10-24 14:29:38 -07:00
2017-08-21 15:50:36 -07:00
2017-09-26 10:04:25 +03:00
2017-10-07 16:24:49 +03:00
2017-09-14 21:07:18 +03:00
2017-10-07 16:24:49 +03:00
2015-11-08 01:37:55 -08:00
2017-08-19 13:38:38 +03:00
2017-06-23 18:44:35 -07:00
2017-10-25 14:21:10 +03:00
2017-08-14 16:30:23 -07:00
2017-11-01 14:55:40 +00:00
2017-10-07 16:24:49 +03:00
2017-10-09 17:34:02 -07:00
2016-10-03 09:36:28 +03:00
2017-09-16 18:19:25 +03:00
2017-10-14 02:09:43 -07:00
2017-10-28 14:12:50 -07:00
2016-12-28 22:52:08 +02:00
2015-11-25 10:15:41 +02:00
2017-10-07 16:24:49 +03:00
2015-11-08 01:37:55 -08:00
2017-10-16 12:47:07 +03:00
2016-06-07 20:57:50 +03:00
2017-10-20 18:31:07 -07:00
2017-10-25 19:13:21 -07:00
2017-10-28 14:12:50 -07:00
2016-04-16 15:37:35 -07:00
2017-10-08 03:29:16 -07:00
2017-08-19 14:10:29 +03:00
2017-05-19 16:51:05 -07:00
2016-06-01 18:29:05 +03:00
2016-07-09 15:03:03 -07:00
2017-09-09 16:32:30 -07:00
2017-09-09 16:51:38 -07:00
2017-10-31 22:30:07 +02:00
2015-11-21 20:51:46 +02:00
2016-05-20 17:01:40 -07:00
2016-10-13 12:08:06 -07:00
2017-11-01 15:38:44 +02:00
2017-08-04 23:15:30 +03:00
2017-11-01 14:55:40 +00:00
2017-10-19 23:08:46 -07:00
2017-10-08 03:29:16 -07:00
2017-11-01 00:07:29 +02:00
2016-12-27 23:12:16 -05:00
2017-09-25 10:42:43 -07:00
2017-09-11 18:58:48 -07:00
2016-10-17 18:19:22 +01:00
2015-12-16 18:16:39 -08:00
2016-11-13 15:25:43 +02:00
2017-09-25 17:17:06 -07:00
2017-10-25 10:59:11 +03:00
2017-10-28 01:18:25 -07:00
2017-10-20 18:31:07 -07:00
2017-08-19 14:10:29 +03:00
2017-10-04 18:18:21 -07:00
2017-10-08 18:12:08 -07:00
2017-10-08 18:12:08 -07:00
2017-08-02 18:56:54 -07:00
2017-09-11 15:59:50 -07:00
2017-09-11 16:22:14 -07:00
2017-10-19 23:08:46 -07:00
2016-05-20 17:01:40 -07:00
2017-05-29 12:47:40 -07:00
2017-08-19 14:10:29 +03:00
2017-10-08 03:04:52 +03:00
2015-11-25 10:15:41 +02:00
2017-10-31 21:18:24 +02:00
2015-11-06 16:05:36 +02:00
2017-09-26 10:04:25 +03:00
2017-06-28 00:40:00 +03:00
2016-05-19 18:05:54 +03:00
2016-12-08 17:22:59 -08:00
2016-01-17 15:05:34 -08:00
2017-10-26 22:00:50 +03:00
2017-10-19 23:08:46 -07:00
2017-06-04 15:22:00 -07:00
2016-06-07 20:57:50 +03:00
2017-08-20 23:04:59 +03:00
2016-12-08 17:22:59 -08:00
2017-09-25 13:20:30 -07:00
2017-02-05 09:59:56 +02:00
2015-05-25 09:21:31 +09:00
2017-10-08 03:29:16 -07:00
2017-08-28 15:56:16 -07:00
2017-10-07 16:30:17 +03:00
2017-08-04 22:41:26 +03:00
2017-10-02 18:25:09 -07:00
2016-01-06 01:44:18 +02:00
2016-02-05 00:25:39 -08:00
2017-09-12 04:14:44 -07:00
2017-06-08 15:05:24 -07:00
2017-09-26 10:04:25 +03:00
2016-12-07 17:53:08 +02:00
2017-06-16 18:27:25 +03:00
2017-06-08 15:05:24 -07:00
2016-03-25 17:26:37 -07:00
2017-10-07 16:24:49 +03:00