From 78b0e379d7c2db84eec34ccd89cf9afb67b94901 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Tue, 26 Jun 2001 02:06:08 +0000 Subject: Vladimir's last_patch_15 --- include/libbb.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 102596c1f..3b0ced7d1 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -243,7 +243,11 @@ extern FILE *gz_open(FILE *compressed_file, int *pid); extern struct hostent *xgethostbyname(const char *name); char *dirname (const char *path); -char *strdup_substr (const char *s, int start, int end); + +static inline char *strdup_substr (const char *s, int start, int end) +{ + return xstrndup (s+start, end-start); +} int make_directory (char *path, mode_t mode, int flags); #define CT_AUTO 0 -- cgit v1.2.3