search for: local_strcat

Displaying 2 results from an estimated 2 matches for "local_strcat".

2005 May 25
1
[PATCH] Fix use of uninitialized variable
...ot;ERROR (--%s): malformed seekpoint specification \"%s\",\n %s\n", opt, option_argument, violation); ok = false; + } else { + op = find_shorthand_operation(options, OP__ADD_SEEKPOINT); + if(0 == op) + op = append_shorthand_operation(options, OP__ADD_SEEKPOINT); + local_strcat(&(op->argument.add_seekpoint.specification), spec); + local_strcat(&(op->argument.add_seekpoint.specification), ";"); + free(spec); } - op = find_shorthand_operation(options, OP__ADD_SEEKPOINT); - if(0 == op) - op = append_shorthand_operation(options, OP__ADD_SEEK...
2013 Apr 20
2
Metaflac hex dump UTF-8 and locale fix
...;t using C-locale. At least it did so for all locales I tried (Finnish, German, English US). -------------- next part -------------- diff --git a/src/metaflac/utils.c b/src/metaflac/utils.c index 934cfcf..debc11e 100644 --- a/src/metaflac/utils.c +++ b/src/metaflac/utils.c @@ -77,17 +77,23 @@ void local_strcat(char **dest, const char *source) safe_strncpy((*dest)+ndest, source, ndest + nsource + 1); } +static inline int local_isprint(int c) +{ + if (c < 0x32) return 0; + return isprint(c); +} + void hexdump(const char *filename, const FLAC__byte *buf, unsigned bytes, const char *indent) { uns...