Skip to content

Commit

Permalink
Remove LINE_MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Feb 23, 2020
1 parent eca2155 commit d1607bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/util/extractframes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ int extractframes(int argc, const char **argv, const Command& command) {
if (querySize == 0) {
queryFrom = 0;
}
char buffer[LINE_MAX];


char buffer[1024];
std::string reverseComplementStr;
reverseComplementStr.reserve(32000);
for (unsigned int i = queryFrom; i < (queryFrom + querySize); ++i){
Expand Down
3 changes: 1 addition & 2 deletions src/util/extractorfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ int extractorfs(int argc, const char **argv, const Command& command) {
queryFrom = 0;
}
char* aa = new char[par.maxSeqLen + 3 + 1];
char buffer[1024];

std::vector<Orf::SequenceLocation> res;
res.reserve(1000);
Expand Down Expand Up @@ -87,8 +88,6 @@ int extractorfs(int argc, const char **argv, const Command& command) {
continue;
}

char buffer[LINE_MAX];

std::pair<const char*, size_t> sequence = orf.getSequence(loc);
size_t fromPos = loc.from;
size_t toPos = loc.to;
Expand Down
2 changes: 1 addition & 1 deletion src/util/orftocontig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int orftocontig(int argn, const char **argv, const Command& command) {
#ifdef OPENMP
thread_idx = static_cast<unsigned int>(omp_get_thread_num());
#endif
char orfToContigBuffer[LINE_MAX];
char orfToContigBuffer[1024];

#pragma omp for schedule(dynamic, 100)
for (size_t id = 0; id < orfHeadersReader.getSize(); ++id) {
Expand Down
2 changes: 1 addition & 1 deletion src/util/splitsequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ int splitsequence(int argc, const char **argv, const Command& command) {
if (querySize == 0) {
queryFrom = 0;
}
char buffer[LINE_MAX];
char buffer[1024];

for (unsigned int i = queryFrom; i < (queryFrom + querySize); ++i){
progress.updateProgress();
Expand Down

0 comments on commit d1607bc

Please sign in to comment.