diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-07-14 07:57:23 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-07-14 07:57:23 +0000 |
commit | 7d8c7064c2d32dee6f651a11f2685238f40932a5 (patch) | |
tree | 7d8c518488f6302a0988eff7e713ae19feb00f86 /src/htscoremain.c | |
parent | 482e33c0fcb1390ec1f8f0eee18f4e5eb53233ac (diff) |
Fixed stupid typo.
Diffstat (limited to 'src/htscoremain.c')
-rw-r--r-- | src/htscoremain.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/htscoremain.c b/src/htscoremain.c index ea89810..1048eb6 100644 --- a/src/htscoremain.c +++ b/src/htscoremain.c @@ -2425,14 +2425,15 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp * opt) { /* produce key #i */ #define FMT() \ char buffer[256]; \ - char *name = buffer; \ + char *name; \ const long expected = (long) i * 1664525 + 1013904223; \ do { \ if (strings == NULL) { \ - snprintf(name, sizeof(name), \ + snprintf(buffer, sizeof(buffer), \ "http://www.example.com/website/sample/for/hashtable/" \ "%ld/index.html?foo=%ld&bar", \ (long) i, (long) (expected)); \ + name = buffer; \ } else { \ name = strings[i]; \ } \ |