Opened 6 years ago

Closed 6 years ago

#7162 closed defect (fixed)

degrib myutil.c strTrimRight no longer working with r40749

Reported by: Kurt Schwehr Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

third_party/gdal/autotest2/cpp/frmts/grib/degrib/myutil_test.cc:115
Expected equality of these values:
  "a"
  a
    Which is: "a "

https://github.com/schwehr/gdal-autotest2/blob/master/cpp/frmts/grib/degrib/myutil_test.cc#L115

  char a[] = "a ";
  strTrimRight(a, 'z');
  EXPECT_STREQ("a", a);

Change History (1)

comment:1 by Even Rouault, 6 years ago

Resolution: fixed
Status: newclosed

In 40804:

Fix strTrimRight() regression due to cast put at inappropriate place during degrib 2.14 merging (fixes #7162)

Note: See TracTickets for help on using tickets.