Browse Source

Fix strncpy for -C option

Martin Duquesnoy 12 years ago
parent
commit
f0bf12770e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/wmfs.c

+ 1 - 1
src/wmfs.c

@@ -598,7 +598,7 @@ main(int argc, char **argv)
                break;
 
                case 'C':
-                    strncpy(path, optarg, sizeof(W->confpath));
+                    strncpy(path, optarg, MAX_PATH_LEN);
                     break;
           }
      }