Index: xfoil/osrc/getosfile.c
===================================================================
--- xfoil.orig/osrc/getosfile.c	2009-12-31 01:55:41.176705284 +0100
+++ xfoil/osrc/getosfile.c	2009-12-31 02:02:45.633891739 +0100
@@ -13,6 +13,8 @@
 
 #endif
 
+#define DEFAULT_OSFILE "/usr/lib/xfoil/osmap.dat"
+
 void
 GETOSFILE(osfile,len)
      char *osfile;
@@ -28,11 +30,12 @@
       printf("osfile: %s\n",osfile); */
 
    if(bufp){ 
-      strcpy(osfile,bufp);
+      strncpy(osfile,bufp, 128);
       l = strlen(bufp);
       }
     else {
-      l = 0;
+      strncpy(osfile,DEFAULT_OSFILE, 128);
+      l = strlen(DEFAULT_OSFILE);
       }
 
    *len = l;
