Skip to content

Commit

Permalink
[bugfix] bad strcmp (copied from disp2ply)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyoussef committed Mar 16, 2017
1 parent 1b5e877 commit ad4f671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/multidisp2ply.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void write_ply_header(FILE* f, bool ascii, int npoints, int zone, bool hem,

static void parse_utm_string(int *zone, bool *hem, const char *s)
{
if (strncmp(s, "no_utm_zone", 12)) {
if (0 == strcmp(s, "no_utm_zone")) {
*zone = -1;
return;
}
Expand Down

0 comments on commit ad4f671

Please sign in to comment.