<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/ui-ssdiff.c, branch ch/git-2-54</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>https://git.zx2c4.com/cgit/atom/ui-ssdiff.c?h=ch%2Fgit-2-54</id>
<link rel='self' href='https://git.zx2c4.com/cgit/atom/ui-ssdiff.c?h=ch%2Fgit-2-54'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/'/>
<updated>2019-06-05T13:37:49Z</updated>
<entry>
<title>ui-ssdiff: ban strncat()</title>
<updated>2019-06-05T13:37:49Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2019-02-12T20:53:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=68de710c1c0e9b823a156b1398643601a682fbf9'/>
<id>urn:sha1:68de710c1c0e9b823a156b1398643601a682fbf9</id>
<content type='text'>
Git version v2.21.0 marks strncat() as banned (commit
ace5707a803eda0f1dde3d776dc3729d3bc7759a), so replace it.

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>ui-ssdiff: resolve HTML5 validation errors</title>
<updated>2019-02-22T23:08:50Z</updated>
<author>
<name>Chris Mayo</name>
<email>aklhfex@gmail.com</email>
</author>
<published>2019-02-21T19:56:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=5bd7e9bc1b6749bbb5220d6c3a990469a7b839ae'/>
<id>urn:sha1:5bd7e9bc1b6749bbb5220d6c3a990469a7b839ae</id>
<content type='text'>
- Remove ids from anchor elements. They were unusable because they were
  duplicated between files and versions of files.
- Always close span, with html().
- Fix missing / on closing tr element in cgit_ssdiff_header_end().

Signed-off-by: Chris Mayo &lt;aklhfex@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-ssdiff: ban strcat()</title>
<updated>2018-09-11T06:47:12Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2018-08-28T16:23:36Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=a96f2890f41e0b9b0ffa1bcdb1dddbef28c01662'/>
<id>urn:sha1:a96f2890f41e0b9b0ffa1bcdb1dddbef28c01662</id>
<content type='text'>
Git upstream bans strcat() with commit:

  banned.h: mark strcat() as banned
  1b11b64b815db62f93a04242e4aed5687a448748

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>ui-ssdiff: ban strncpy()</title>
<updated>2018-09-11T06:47:12Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2018-08-28T16:22:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=0899eb644fab415e9a3b304f53da9da50aaf91aa'/>
<id>urn:sha1:0899eb644fab415e9a3b304f53da9da50aaf91aa</id>
<content type='text'>
Git upstream bans strncpy() with commit:

  banned.h: mark strncpy() as banned
  e488b7aba743d23b830d239dcc33d9ca0745a9ad

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>Fix gcc 8.1.1 compiler warnings</title>
<updated>2018-07-04T01:13:41Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2018-07-04T01:13:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=08a2b1b8f812c6d77489467c8ff120979c297bed'/>
<id>urn:sha1:08a2b1b8f812c6d77489467c8ff120979c297bed</id>
<content type='text'>
    CC ../shared.o
../shared.c: In function ‘expand_macro’:
../shared.c:487:3: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
   strncpy(name, value, len);
   ^~~~~~~~~~~~~~~~~~~~~~~~~
../shared.c:484:9: note: length computed here
   len = strlen(value);
         ^~~~~~~~~~~~~
../ui-shared.c: In function ‘cgit_repobasename’:
../ui-shared.c:136:2: warning: ‘strncpy’ specified bound 1024 equals destination size [-Wstringop-truncation]
  strncpy(rvbuf, reponame, sizeof(rvbuf));
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    CC ../ui-ssdiff.o
../ui-ssdiff.c: In function ‘replace_tabs’:
../ui-ssdiff.c:142:4: warning: ‘strncat’ output truncated copying between 1 and 8 bytes from a string of length 8 [-Wstringop-truncation]
    strncat(result, spaces, 8 - (strlen(result) % 8));
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>ui-ssdiff: fix decl-after-statement warnings</title>
<updated>2016-10-01T10:43:45Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2016-08-07T15:14:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=7e67c64894b1093fbc009edd811fee1e76daa2d7'/>
<id>urn:sha1:7e67c64894b1093fbc009edd811fee1e76daa2d7</id>
<content type='text'>
git.git's coding style avoids decl-after-statement and we generally try
to follow it but a few warnings have crept in recently.  Fix the one in
ui-ssdiff.c

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>git: update to v2.10.0</title>
<updated>2016-09-04T10:38:18Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2016-09-04T10:38:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=11695a58fd732689be486edf88d145578a787c89'/>
<id>urn:sha1:11695a58fd732689be486edf88d145578a787c89</id>
<content type='text'>
Upstream continues to replace unsigned char *sha1 with struct
object_id old_oid. This makes the required changes.

The git lib has its own main function now. Rename our main function
to cmd_main, it is called from main then.
</content>
</entry>
<entry>
<title>ui-ssdiff: fix resource leak: free allocation from cgit_fileurl</title>
<updated>2015-10-09T11:59:24Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2015-10-09T11:15:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=fa5810ed8e66c4b217b8e02d2682e0fdba7f102b'/>
<id>urn:sha1:fa5810ed8e66c4b217b8e02d2682e0fdba7f102b</id>
<content type='text'>
Coverity-id: 13929
Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>Avoid non-ANSI function declarations</title>
<updated>2015-03-09T16:38:30Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-03-08T16:32:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=e3d3fffdd447cdb4551549faae65bae5353a2cab'/>
<id>urn:sha1:e3d3fffdd447cdb4551549faae65bae5353a2cab</id>
<content type='text'>
Sparse says things like:

	warning: non-ANSI function declaration of function 'calc_ttl'

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>Reduce line number bloat, fix hover effect</title>
<updated>2014-01-08T13:59:38Z</updated>
<author>
<name>Peter Wu</name>
<email>lekensteyn@gmail.com</email>
</author>
<published>2013-10-03T10:17:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=4468ec1b15becf3838d8cf38440c527c487565a4'/>
<id>urn:sha1:4468ec1b15becf3838d8cf38440c527c487565a4</id>
<content type='text'>
Currently line numbers look like (for blob view and sdiff respectively):

    &lt;a class='no' id='n68' name='n68' href='#n68'&gt;68&lt;/a&gt;
    &lt;td class='lineno'&gt;&lt;a class='no' href='...#n1' id='n1' name='n1'&gt;1&lt;/a&gt;&lt;/td&gt;

name=".." is unnecessary if the id attribute is set (this even applies
to IE6), so drop it. (aside, in HTML5, the name attribute is gone.)

The line number links can be selected through their parent classes, no
need for another class "no", so drop it too.

For a file with 2000 lines, this yields a saving of 40% (29% gzipped).

While at it, fix the hover effect of line numbers: now the line number
get a black background as was intended.

Signed-off-by: Peter Wu &lt;lekensteyn@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
</entry>
</feed>
