aboutsummaryrefslogtreecommitdiffstats
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
parentEmpty signed commit (diff)
downloadmakeenv-1.0.1.tar.gz
makeenv-1.0.1.tar.bz2
makeenv-1.0.1.tar.xz
Fix memory corrupt bug1.0.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
-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);
}