From: Matthias A. <mat...@gm...> - 2005-12-17 15:52:34
|
Sunil Shetye <sh...@bo...> writes: > Matthias, please consider this patch for 6.3.1. I wonder if it's the right thing to do, or if the server of the day might return the flags or some other information along with the size. I had a quick glance at the standard, and I'm not at all sure if it's allowed for the server to return excess information. At any case, if a server does that, we're dead in the water again. I'd rather use a bit more of a parser to take the fetch response apart. If we choose not to do that, the patch can be simplified and use this structure: if (sscanf(s, "pattern", ...) == 2 || sscanf(s, "other pattern", ...) == 2) { do whatever is appropriate } What do you think? -- Matthias Andree |