Changeset 487 for libmpc/trunk/mpcenc/mpcenc.c
- Timestamp:
- 01/10/16 22:36:06 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/mpcenc/mpcenc.c
r484 r487 1024 1024 else if ( 0 == strcmp ( arg, "stderr") ) { // Offset for threshold in quiet 1025 1025 if ( ++k >= argc ) { stderr_printf ( errmsg, arg ); return -1; } 1026 freopen ( argv[k], "a", stderr );1026 stderr = freopen ( argv[k], "a", stderr ); 1027 1027 } 1028 1028 else if ( 0 == strcmp ( arg, "ltq") || 0 == strcmp ( arg, "ath") ) { // threshold in quiet … … 1209 1209 if ( p == NULL ) { 1210 1210 stderr_printf (" Enter value for tag key '%s': ", argv[k] ); 1211 fgets ( buff, sizeof buff, stdin ); 1212 len = strlen (buff); 1213 while ( len > 0 && (buff [len-1] == '\r' || buff [len-1] == '\n') ) 1214 len--; 1215 addtag ( arg, strlen(arg), buff, len, NoUnicode*6, 0 ); 1211 if (0 != fgets ( buff, sizeof buff, stdin )) { 1212 len = strlen (buff); 1213 while ( len > 0 && (buff [len-1] == '\r' || buff [len-1] == '\n') ) 1214 len--; 1215 addtag ( arg, strlen(arg), buff, len, NoUnicode*6, 0 ); 1216 } 1216 1217 } 1217 1218 else {
Note: See TracChangeset
for help on using the changeset viewer.