summaryrefslogtreecommitdiffstats
path: root/src/fiasco.c
diff options
context:
space:
mode:
authorpancake <pancake@flubox>2008-12-19 19:39:27 +0100
committerpancake <pancake@flubox>2008-12-19 19:39:27 +0100
commita6ef73359c0e0537ebf83795ebacbbfaee2c9c28 (patch)
tree1db2cc7c531927be96c581e4077500918ad45ac4 /src/fiasco.c
parent3a1053b29e5fb8109463259ee9dff3d8f4e4be5b (diff)
download0xFFFF-a6ef73359c0e0537ebf83795ebacbbfaee2c9c28.tar.bz2
* Apply security patches from Erik Hovland - Thanks!
Diffstat (limited to 'src/fiasco.c')
-rw-r--r--src/fiasco.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fiasco.c b/src/fiasco.c
index 3e9da9f..cb27b10 100644
--- a/src/fiasco.c
+++ b/src/fiasco.c
@@ -62,7 +62,7 @@ int openfiasco(char *name, char *piece_grep, int v)
read(header.fd, buf, namelen);
if (v) printf("Fiasco version: %2d\n", buf[3]);
- strcpy(header.fwname, (char *)buf+6);
+ strncpy(header.fwname, (char *)buf+6, sizeof(header.fwname) - 1);
if (v)
for(i=6;i<namelen;i+=strlen((char *)(buf+i))+1)
printf("Name: %s\n", buf+i);