summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-12-10 21:44:11 +0000
committerErik Troan <ewt@redhat.com>2001-12-10 21:44:11 +0000
commitbc0b541ce16435981c66707170e03a772f7c78f8 (patch)
tree9c71193ed40d8e46eaa475811daf07f73a57317c /loader
parentb39da6661bfcf04b1031488b334c77f68f0d114c (diff)
downloadanaconda-bc0b541ce16435981c66707170e03a772f7c78f8.tar.gz
anaconda-bc0b541ce16435981c66707170e03a772f7c78f8.tar.xz
anaconda-bc0b541ce16435981c66707170e03a772f7c78f8.zip
fixed broken sprintf()
Diffstat (limited to 'loader')
-rw-r--r--loader/pcmcia.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/loader/pcmcia.c b/loader/pcmcia.c
index b2b70aff2..6cb9f469b 100644
--- a/loader/pcmcia.c
+++ b/loader/pcmcia.c
@@ -1,3 +1,4 @@
+#include <errno.h>
#include <fcntl.h>
#include <kudzu/kudzu.h>
#include <newt.h>
@@ -143,10 +144,10 @@ int startPcmcia(char * floppyDevice, moduleList modLoaded, moduleDeps modDeps,
}
}
- sprintf("%s:ds", pcic);
+ sprintf(buf, "%s:ds", pcic);
- if (mlLoadModuleSet(pcic, modLoaded, modDeps, modInfo, flags)) {
- logMessage("failed to load pcic/ds");
+ if (mlLoadModuleSet(buf, modLoaded, modDeps, modInfo, flags)) {
+ logMessage("failed to load pcic.o or ds.o");
umount("/modules");
return LOADER_ERROR;
}
@@ -165,6 +166,6 @@ int startPcmcia(char * floppyDevice, moduleList modLoaded, moduleDeps modDeps,
umount("/modules");
strcpy(pcicPtr, pcic);
-
+
return 0;
}