Changeset 2325 for trunk/auto-reply
- Timestamp:
- 10/24/00 23:13:41 (8 years ago)
- Files:
-
- 1 modified
-
trunk/auto-reply/src/autoreply.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/auto-reply/src/autoreply.cpp
r2211 r2325 257 257 bool CLicqAutoReply::AutoReplyEvent(unsigned long nUin, CUserEvent *event) 258 258 { 259 char m_szMessage[4096], szCommand[4096]; 260 char c; 261 int pos = 0; 262 263 for (int i = 0; i < 4096; i++) 264 { 265 m_szMessage[i] = '\0'; 266 } 259 char szCommand[4096]; 267 260 268 261 char *buf = szCommand; … … 284 277 } 285 278 279 int pos = 0; 280 int c; 281 char m_szMessage[4097]; 286 282 while (((c = fgetc(fStdOut)) != EOF) && (pos < 4096)) 287 283 { 288 284 m_szMessage[pos++] = c; 289 285 } 286 m_szMessage[pos] = '\0'; 287 290 288 int r = 0; 291 289 if ((r = PClose()) != 0 && m_bFailOnExitCode)
