aboutsummaryrefslogtreecommitdiffstats
path: root/makeenv.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-06-29 14:10:14 +0200
committerMattias Andrée <maandree@kth.se>2024-06-29 14:10:14 +0200
commitc38dbe994d40ee4cce384550579b8e817dd9a9b8 (patch)
tree666ea518fdc4d0f9c2b009e0bdf24d6e71b1756e /makeenv.c
parentEmpty signed commit (diff)
downloadmakeenv-26df0d52cfd040aaf3910bf0f2d3cededb4264f5.tar.gz
makeenv-26df0d52cfd040aaf3910bf0f2d3cededb4264f5.tar.bz2
makeenv-26df0d52cfd040aaf3910bf0f2d3cededb4264f5.tar.xz
Fix memory corrupt bug1.0.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'makeenv.c')
-rw-r--r--makeenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/makeenv.c b/makeenv.c
index c2982f0..8f76f5b 100644
--- a/makeenv.c
+++ b/makeenv.c
@@ -229,7 +229,7 @@ trim_around_equals(char *s)
val++;
if (val != p)
- stpcpy(p, val);
+ memmove(p, val, strlen(val) + 1U);
}