diff options
author | Erik Troan <ewt@redhat.com> | 2001-12-10 21:44:11 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-12-10 21:44:11 +0000 |
commit | bc0b541ce16435981c66707170e03a772f7c78f8 (patch) | |
tree | 9c71193ed40d8e46eaa475811daf07f73a57317c /loader | |
parent | b39da6661bfcf04b1031488b334c77f68f0d114c (diff) | |
download | anaconda-bc0b541ce16435981c66707170e03a772f7c78f8.tar.gz anaconda-bc0b541ce16435981c66707170e03a772f7c78f8.tar.xz anaconda-bc0b541ce16435981c66707170e03a772f7c78f8.zip |
fixed broken sprintf()
Diffstat (limited to 'loader')
-rw-r--r-- | loader/pcmcia.c | 9 |
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; } |