summaryrefslogtreecommitdiffstats
path: root/loader2/modules.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-02-17 17:15:50 +0000
committerJeremy Katz <katzj@redhat.com>2004-02-17 17:15:50 +0000
commit59ab8ec036867e5a52ad348f6c6fd284a66d912f (patch)
tree07384592211783abb4a22ea2af39a7cb02b4dafb /loader2/modules.c
parentf91bda34939bb132251935ea9932f6109e5f56dc (diff)
downloadanaconda-59ab8ec036867e5a52ad348f6c6fd284a66d912f.tar.gz
anaconda-59ab8ec036867e5a52ad348f6c6fd284a66d912f.tar.xz
anaconda-59ab8ec036867e5a52ad348f6c6fd284a66d912f.zip
fix for off by one from mitr (#115948)
Diffstat (limited to 'loader2/modules.c')
-rw-r--r--loader2/modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader2/modules.c b/loader2/modules.c
index b76b07dd3..289d1a624 100644
--- a/loader2/modules.c
+++ b/loader2/modules.c
@@ -733,7 +733,7 @@ char * getModuleLocation(int version) {
}
if (version == 1) {
- ret = malloc(strlen(u.release) + strlen(arch) + 1);
+ ret = malloc(strlen(u.release) + strlen(arch) + 2);
sprintf(ret, "%s/%s", u.release, arch);
return ret;
} else {