diff options
author | Adam Jackson <ajax@redhat.com> | 2008-06-13 13:07:49 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-06-13 13:08:41 -0400 |
commit | 31cb01986bc3527152d0e3501b38d1b5cfad3155 (patch) | |
tree | 302c5846e99e986358d5dc0afaf396bd9ec46644 | |
parent | 0aa2ae83518b14e927fb5b8ced182a4f25cecc76 (diff) |
Don't terminate zero-length strings.
Just leave vendor and model NULL if the response didn't include them.
-rw-r--r-- | src/XF86VMode.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/XF86VMode.c b/src/XF86VMode.c index 2a281cc..3a7de6b 100644 --- a/src/XF86VMode.c +++ b/src/XF86VMode.c @@ -963,12 +963,8 @@ XF86VidModeGetMonitor(dpy, screen, monitor) } if (rep.vendorLength) _XReadPad(dpy, monitor->vendor, rep.vendorLength); - else - monitor->vendor[0] = '\0'; if (rep.modelLength) _XReadPad(dpy, monitor->model, rep.modelLength); - else - monitor->model[0] = '\0'; UnlockDisplay(dpy); SyncHandle(); |