Fix a bug where a pointer would be one character too far after putting

a '\0' at the end of a string.

Submitted by:	Martin Birgmeier <Martin.Birgmeier@aon.at>
This commit is contained in:
Ollivier Robert 1999-12-21 10:17:36 +00:00
parent c64893b10c
commit aa50282cd1
5 changed files with 5 additions and 5 deletions

View File

@ -94,7 +94,7 @@ flags_to_string(flags, def)
setflags &= ~mapping[i].flag;
}
}
*dp++ = '\0';
*dp = '\0';
return (dp == string && def != NULL ? def : string);
}

View File

@ -94,7 +94,7 @@ flags_to_string(flags, def)
setflags &= ~mapping[i].flag;
}
}
*dp++ = '\0';
*dp = '\0';
return (dp == string && def != NULL ? def : string);
}

View File

@ -94,7 +94,7 @@ flags_to_string(flags, def)
setflags &= ~mapping[i].flag;
}
}
*dp++ = '\0';
*dp = '\0';
return (dp == string && def != NULL ? def : string);
}

View File

@ -94,7 +94,7 @@ flags_to_string(flags, def)
setflags &= ~mapping[i].flag;
}
}
*dp++ = '\0';
*dp = '\0';
return (dp == string && def != NULL ? def : string);
}

View File

@ -94,7 +94,7 @@ flags_to_string(flags, def)
setflags &= ~mapping[i].flag;
}
}
*dp++ = '\0';
*dp = '\0';
return (dp == string && def != NULL ? def : string);
}