diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
commit | 9fa9eb9ac7bf1d3de825ee25a8f0ae81b7b77896 (patch) | |
tree | 9b071a8105704e992946dcd6b801e9fcb7635142 /audio/squash/files/patch-src__display.c | |
parent | MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out, (diff) |
Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.
With hat: portmgr
Sponsored by: Absolight
Diffstat (limited to 'audio/squash/files/patch-src__display.c')
-rw-r--r-- | audio/squash/files/patch-src__display.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/audio/squash/files/patch-src__display.c b/audio/squash/files/patch-src__display.c deleted file mode 100644 index eddc376beaad..000000000000 --- a/audio/squash/files/patch-src__display.c +++ /dev/null @@ -1,34 +0,0 @@ ---- ./src/display.c.orig 2003-12-07 22:20:41.000000000 +0100 -+++ ./src/display.c 2011-03-21 17:21:19.000000000 +0100 -@@ -179,6 +179,22 @@ - return (void *)NULL; - } - -+char *mystrndup(const char *s, size_t sz) -+{ -+ size_t l = strlen(s), i; -+ char *x; -+ -+ i = l < sz ? l : sz; -+ -+ x = malloc(i + 1); -+ -+ if (x) { -+ memcpy(x, s, i); -+ x[i] = '\0'; -+ } -+ return x; -+} -+ - /* - * Draw the screen, This takes into account rebuilding all the - * windows in case of screen resize, or if a window changes size. -@@ -1567,7 +1583,7 @@ - } - - /* Clip filename */ -- filename = strndup( filename, win_width - 2 ); -+ filename = mystrndup( filename, win_width - 2 ); - - /* Display filename and songs loaded */ - mvwprintw( win, 1, 1, "Current Selected Song filename:" ); |