diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index c400612d9..f8a18cdc5 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -2119,7 +2119,7 @@ stack_add_system_drive(const char *path) | |||
2119 | const char *sd = need_system_drive(path); | 2119 | const char *sd = need_system_drive(path); |
2120 | char *p = growstackto(strlen(path) + 5 + (sd ? strlen(sd) : 0)); | 2120 | char *p = growstackto(strlen(path) + 5 + (sd ? strlen(sd) : 0)); |
2121 | 2121 | ||
2122 | sprintf(p, "%s%s", sd ?: "", path); | 2122 | strcpy(stpcpy(p, sd ?: ""), path); |
2123 | return p; | 2123 | return p; |
2124 | } | 2124 | } |
2125 | #endif | 2125 | #endif |