콘솔로 프로그램 짠 소스입니다. usb에 폴더에 저장하는 프로그램입니다.
처음부터 저장 잘하는데 19번째 저장중에 커널 패닉이 납니다.
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char **argv)
{
char message[11];
char m_sur[400002];
char path[30]="/mnt/concel/";
char test[2];
int fd;
fputs("input file:", stdout);
fgets(message, sizeof(message), stdin);
memcpy(path+12, message, sizeof(message));