[GIT] ppl/ppl(master): Avoid mixing plain character data with numeric data.

Module: ppl/ppl Branch: master Commit: a819fa12f81baba2e8b939e7cf1ec43dae8f6573 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=a819fa12f81ba...
Author: Enea Zaffanella zaffanella@cs.unipr.it Date: Sun Feb 26 19:20:46 2012 +0100
Avoid mixing plain character data with numeric data. Detected by ECLAIR service utypflag.
---
src/wrap_string.cc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/wrap_string.cc b/src/wrap_string.cc index 06dac11..b9ba6f4 100644 --- a/src/wrap_string.cc +++ b/src/wrap_string.cc @@ -62,7 +62,7 @@ wrap_string(const std::string& src_string, else if (last_space != npos) split_pos = last_space; else { - for ( ; src[idx] != 0; ++idx) { + for ( ; src[idx] != '\0'; ++idx) { if (src[idx] == ',') { ++idx; break;
participants (1)
-
Enea Zaffanella