Skip to content

Commit 979fd09

Browse files
committed
fixup! Args.c: shorten string allocations and abort on failure
1 parent b069012 commit 979fd09

File tree

1 file changed

+1
-1
lines changed
  • nx-X11/programs/Xserver/hw/nxagent

1 file changed

+1
-1
lines changed

nx-X11/programs/Xserver/hw/nxagent/Args.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ int ddxProcessArgument(int argc, char *argv[], int i)
355355
/* FIXME: why limit 10 1024 bytes? */
356356
if ((size = strlen(argv[i])) < 1024)
357357
{
358-
if ((nxagentOptionsFilename = strndup(argv[i], size)) == NULL;
358+
if ((nxagentOptionsFilename = strndup(argv[i], size)) == NULL);
359359
{
360360
FatalError("malloc failed");
361361
}

0 commit comments

Comments
 (0)