Skip to content

Commit

Permalink
testing for #9
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmattkc committed Feb 16, 2018
1 parent 1be4dcd commit 0b8dbf0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/olive-sources.cpp
Expand Up @@ -198,8 +198,9 @@ void Sources::openFile(char* filename) {
if (lastSlash == NULL) lastSlash = strrchr(filename, '\\');

int lsIndex = lastSlash-filename+1;
char* newNick = new char[1024];
strncpy(newNick, filename+lsIndex, strlen(filename)-strlen(lastSlash));
int nickLen = strlen(filename)-lsIndex;
char* newNick = new char[nickLen];
strncpy(newNick, filename+lsIndex, nickLen);
m->nickname = newNick;

m->length = pFormatCtx->duration;
Expand Down

0 comments on commit 0b8dbf0

Please sign in to comment.