X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fu8-line.c;h=1374314a11fb377c8f6e7e95b751738426f16c8d;hb=45ad47c91e62bdb802eb88e44e9f469956d24f34;hp=3b4f9c60c4d2e55ea7503bf89bc3d80fc0801c33;hpb=7005ff151eefdd9d2650dcfd0450e367eaad92aa;p=pspp diff --git a/src/libpspp/u8-line.c b/src/libpspp/u8-line.c index 3b4f9c60c4..1374314a11 100644 --- a/src/libpspp/u8-line.c +++ b/src/libpspp/u8-line.c @@ -122,6 +122,9 @@ u8_line_find_pos (const struct u8_line *line, int target_x, struct u8_pos *c) } x += w; } + + /* This can happen if there are non-printable characters + in the line. */ c->x1 = x; c->ofs1 = ofs; return false;