- Timestamp:
- Jun 8, 2020, 9:29:15 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/kSubmit.c
r3355 r3363 1226 1226 const char * const psz = va_arg(va, const char *); 1227 1227 size_t const cch = strlen(psz); 1228 if ( memchr(psz, '\'', cch))1228 if (cch == 0 || memchr(psz, '\'', cch)) 1229 1229 { 1230 1230 kSubmitDumpHistoryWrite(pBuf, TUPLE("\"")); /** @todo what if there are '"' in the string? */ … … 1233 1233 } 1234 1234 else if ( !memchr(psz, ' ', cch) 1235 && !memchr(psz, '\\', cch) 1235 1236 && !memchr(psz, '\t', cch) 1236 1237 && !memchr(psz, '\n', cch)
Note:
See TracChangeset
for help on using the changeset viewer.