John Marriott
fff0132399
patch 9.1.1467: too many strlen() calls
...
Problem: too many strlen() calls
Solution: Change expand_env() to return string length
(John Marriott)
This commit does the following changes:
- In expand_env_esc():
- return the length of the returned dst string.
- refactor to remove some calls to STRLEN() and STRCAT()
- add check for out-of-memory condition.
- Change call sites in various source files to use the return value
closes : #17561
Signed-off-by: John Marriott <basilisk@internode.on.net >
Signed-off-by: Christian Brabandt <cb@256bit.org >
2025-06-18 18:20:11 +02:00
..
2022-05-10 13:24:30 +01:00
2025-03-24 20:36:14 +01:00
2023-03-19 21:23:38 +00:00
2023-04-23 17:50:22 +01:00
2025-05-03 18:37:27 +02:00
2025-02-23 09:09:59 +01:00
2022-11-30 18:12:19 +00:00
2025-03-24 20:36:14 +01:00
2023-02-20 12:16:39 +00:00
2025-04-23 20:50:23 +02:00
2024-05-20 19:18:26 +02:00
2023-04-23 17:50:22 +01:00
2023-12-05 16:04:23 +01:00
2024-01-01 20:19:09 +01:00
2025-01-02 18:06:00 +01:00
2025-03-26 19:46:09 +01:00
2023-05-27 22:22:10 +01:00
2025-02-22 09:19:04 +01:00
2025-03-18 20:49:01 +01:00
2025-03-24 20:36:14 +01:00
2022-11-21 19:57:04 +00:00
2025-03-23 16:42:16 +01:00
2024-04-21 14:45:48 +02:00
2024-11-02 18:43:42 +01:00
2025-01-09 22:14:34 +01:00
2024-10-08 22:24:04 +02:00
2024-06-03 23:01:40 +02:00
2025-03-24 20:36:14 +01:00
2025-02-18 20:45:48 +01:00
2025-03-26 18:46:21 +01:00
2025-03-24 20:36:14 +01:00
2024-01-29 20:18:22 +01:00
2023-02-21 14:27:41 +00:00
2022-12-20 20:01:58 +00:00
2022-06-27 22:52:43 +01:00
2023-02-20 12:16:39 +00:00
2022-11-15 17:43:36 +00:00
2023-02-20 12:16:39 +00:00
2022-11-25 16:31:51 +00:00
2022-06-27 22:52:43 +01:00
2025-03-24 20:36:14 +01:00
2023-02-22 13:14:36 +00:00
2024-11-06 21:53:07 +01:00
2024-11-06 21:53:07 +01:00
2022-06-27 22:52:43 +01:00
2024-10-22 22:59:39 +02:00
2025-05-26 18:25:57 +02:00
2025-01-12 09:58:00 +01:00
2025-03-23 16:42:16 +01:00
2022-11-30 18:12:19 +00:00
2025-02-10 21:12:19 +01:00
2023-02-20 12:16:39 +00:00
2025-03-24 20:36:14 +01:00
2025-03-24 20:36:14 +01:00
2024-07-25 20:58:42 +02:00
2024-12-06 17:26:25 +01:00
2025-06-18 18:20:11 +02:00
2025-06-05 21:09:24 +02:00
2023-10-15 10:03:30 +02:00
2025-03-24 20:36:14 +01:00
2025-03-24 20:36:14 +01:00
2024-02-21 00:02:45 +01:00
2025-05-14 21:20:28 +02:00
2025-05-14 21:20:28 +02:00
2023-04-19 20:28:48 +01:00
2025-04-17 20:35:42 +02:00
2025-03-24 20:36:14 +01:00
2023-10-04 20:05:05 +02:00
2025-03-24 20:36:14 +01:00
2025-04-07 21:19:07 +02:00
2022-09-20 13:51:25 +01:00
2024-03-16 15:03:33 +01:00
2025-01-02 18:06:00 +01:00
2025-03-24 20:36:14 +01:00
2024-07-06 18:04:09 +02:00
2022-10-08 13:50:05 +01:00
2024-10-14 20:21:48 +02:00
2025-03-24 20:36:14 +01:00
2022-10-14 17:04:09 +01:00
2025-06-16 19:39:24 +02:00
2025-03-24 20:36:14 +01:00
2025-03-24 20:36:14 +01:00
2023-10-14 11:46:51 +02:00
2025-03-23 16:42:16 +01:00
2022-06-27 22:52:43 +01:00
2022-06-27 22:52:43 +01:00
2022-12-02 20:46:26 +00:00
2022-10-07 11:20:29 +01:00
2025-03-23 16:42:16 +01:00
2025-03-23 16:42:16 +01:00
2022-11-15 17:43:36 +00:00
2025-03-24 20:36:14 +01:00
2022-11-02 13:30:51 +00:00
2025-03-24 20:36:14 +01:00
2025-03-24 20:36:14 +01:00
2025-03-18 22:14:34 +01:00
2025-05-01 08:56:39 +02:00
2024-01-01 20:19:09 +01:00
2025-02-25 20:29:50 +01:00
2025-03-23 16:42:16 +01:00
2023-05-19 19:01:17 +01:00
2025-03-23 16:42:16 +01:00
2025-06-16 19:39:24 +02:00