X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Floop.c;h=b6df5c2d6263aac1e4d81532a582448f17b6fe60;hb=1f53043596e4f60c302974a83edbe2088fde4470;hp=bfe04d11c432240735453e1d6226ebb346a9f75f;hpb=05e356b2a3087e819ef3b5388e29c822f41502e1;p=pspp-builds.git diff --git a/src/loop.c b/src/loop.c index bfe04d11..b6df5c2d 100644 --- a/src/loop.c +++ b/src/loop.c @@ -14,8 +14,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #include #include "error.h" @@ -166,7 +166,7 @@ static int internal_cmd_loop (void) { /* Name of indexing variable if applicable. */ - char name[SHORT_NAME_LEN + 1]; + char name[LONG_NAME_LEN + 1]; /* Create and initialize transformations to facilitate error-handling. */ @@ -224,7 +224,7 @@ internal_cmd_loop (void) } } else - name[0] = 0; + name[0] = '\0'; /* Parse IF clause. */ if (lex_match_id ("IF")) @@ -243,7 +243,7 @@ internal_cmd_loop (void) } /* Find variable; create if necessary. */ - if (name[0]) + if (name[0] != '\0') { two->index = dict_lookup_var (default_dict, name); if (!two->index)