Update all #include directives to the currently preferred style.
[pspp-builds.git] / src / data / casereader-select.c
index a26ef67466f0c8c5c58245865ecd50664287866a..26accb4107a1074fc7273b74ad9c3b0edae27e2f 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2009 Free Software Foundation, Inc.
+   Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
 
 #include <config.h>
 
-#include <data/casereader-provider.h>
+#include "data/casereader-provider.h"
 
 #include "gl/xalloc.h"
 
@@ -72,7 +72,7 @@ casereader_select (struct casereader *subreader,
     {
       struct casereader_select *cs = xmalloc (sizeof *cs);
       cs->by = by;
-      cs->i = 0;
+      cs->i = by - 1;
       return casereader_create_filter_func (subreader,
                                             casereader_select_include,
                                             casereader_select_destroy,