diff options
author | Leonard Schmidt <lems@gmx.net> | 2014-08-14 22:42:09 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-08-15 23:21:32 +0700 |
commit | 1c650c30bc1f11d66d1859d7432051d4f80d5450 (patch) | |
tree | ca65f3b33f63f5d2bd301cf6f3f79033e118e30d /graphics/xli/patch-ac | |
parent | af741c4e20fb394b1a7bb26fa45c757f4baade1a (diff) | |
download | slackbuilds-1c650c30bc1f11d66d1859d7432051d4f80d5450.tar.gz |
graphics/xli: Added (X11 Image Loading Utility).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/xli/patch-ac')
-rw-r--r-- | graphics/xli/patch-ac | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/graphics/xli/patch-ac b/graphics/xli/patch-ac new file mode 100644 index 0000000000..60d8da122f --- /dev/null +++ b/graphics/xli/patch-ac @@ -0,0 +1,22 @@ +$NetBSD: patch-ac,v 1.3 2005/03/21 15:19:28 salo Exp $ + +--- faces.c.orig 2005-02-28 01:42:39.000000000 +0100 ++++ faces.c 2005-03-21 16:08:17.000000000 +0100 +@@ -54,9 +54,15 @@ + if (! strcmp(buf, "\n")) + break; + if (!strncmp(buf, "FirstName:", 10)) +- strcpy(fname, buf + 11); ++ { ++ strncpy(fname, buf + 11, BUFSIZ - 1); ++ fname[BUFSIZ - 1] = '\0'; ++ } + else if (!strncmp(buf, "LastName:", 9)) +- strcpy(lname, buf + 10); ++ { ++ strncpy(lname, buf + 10, BUFSIZ - 1); ++ lname[BUFSIZ - 1] = '\0'; ++ } + else if (!strncmp(buf, "Image:", 6)) { + if (sscanf(buf + 7, "%d%d%d", &iw, &ih, &id) != 3) { + fprintf(stderr,"facesLoad: %s - Bad image\n", name); |